[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/inc/3rdparty/diff/Diff/Op/ -> Copy.php (source)

   1  <?php
   2  /**
   3   * The original PHP version of this code was written by Geoffrey T. Dairiki
   4   * <dairiki@dairiki.org>, and is used/adapted with his permission.
   5   *
   6   * Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki.org>
   7   * Copyright 2004-2017 Horde LLC (http://www.horde.org/)
   8   *
   9   * See the enclosed file COPYING for license information (LGPL). If you did
  10   * not receive this file, see http://www.horde.org/licenses/lgpl21.
  11   *
  12   * @package Text_Diff
  13   * @author  Geoffrey T. Dairiki <dairiki@dairiki.org>
  14   */
  15  
  16  // Disallow direct access to this file for security reasons
  17  if(!defined("IN_MYBB"))
  18  {
  19      die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
  20  }
  21  
  22  class Horde_Text_Diff_Op_Copy extends Horde_Text_Diff_Op_Base
  23  {
  24      public function __construct($orig, $final = false)
  25      {
  26          if (!is_array($final)) {
  27              $final = $orig;
  28          }
  29          $this->orig = $orig;
  30          $this->final = $final;
  31      }
  32  
  33      public function reverse()
  34      {
  35          return new Horde_Text_Diff_Op_Copy($this->final, $this->orig);
  36      }
  37  }


2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref