b2evolution PHP Cross Reference Blogging Systems

Source: /inc/_core/_class4.funcs.php - 50 lines - 1418 bytes - Summary - Text - Print

Description: Function for handling Classes in PHP 4. In PHP5, _class5.funcs.php should be used instead.

   1  <?php
   2  /**
   3   * Function for handling Classes in PHP 4.
   4   *
   5   * In PHP5, _class5.funcs.php should be used instead.
   6   *
   7   * This file is part of the evoCore framework - {@link http://evocore.net/}
   8   * See also {@link http://sourceforge.net/projects/evocms/}.
   9   *
  10   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
  11   *
  12   * {@internal License choice
  13   * - If you have received this file as part of a package, please find the license.txt file in
  14   *   the same folder or the closest folder above for complete license terms.
  15   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  16   *   then you must choose one of the following licenses before using the file:
  17   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  18   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  19   * }}
  20   *
  21   * @package evocore
  22   *
  23   * @version $Id: _class4.funcs.php 6136 2014-03-08 07:59:48Z manuel $
  24   */
  25  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  26  
  27  
  28  /**
  29   * Load class file
  30   *
  31   * @param string
  32   * @param string used by PHP5
  33   */
  34  function load_class( $class_path, $ignore )
  35  {
  36      global $inc_path;
  37      require_once $inc_path.$class_path;
  38      return true;
  39  }
  40  
  41  /**
  42   * Create a copy of an object (abstraction from PHP4 vs PHP5)
  43   */
  44  function duplicate( $Obj )
  45  {
  46      $Copy = $Obj;
  47      return $Copy;
  48  }
  49  
  50  ?>

title

Description

title

Description

title

Description

title

title

Body