Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -1,83 +1,98 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* API: Core
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 5713 $
|
||||
* @file api_core.php Core functions for the API classes
|
||||
*~TERABYTE_DOC_READY~
|
||||
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
|
||||
* $License: This is NULLED!
|
||||
* $Author: ips_terabyte $
|
||||
* @since -
|
||||
* $LastChangedDate: 2011-03-18 17:34:15 -0400 (Fri, 18 Mar 2011) $
|
||||
* @version v3.2.3
|
||||
* $Revision: 8129 $
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @class apiCore
|
||||
* @brief Core functions for the API classes
|
||||
*/
|
||||
class apiCore
|
||||
{
|
||||
/**
|
||||
* Registry Object Shortcuts
|
||||
*
|
||||
* @var $registry
|
||||
* @var $DB
|
||||
* @var $settings
|
||||
* @var $request
|
||||
* @var $lang
|
||||
* @var $member
|
||||
* @var $memberData
|
||||
* @var $cache
|
||||
* @var $caches
|
||||
*/
|
||||
protected $registry;
|
||||
protected $DB;
|
||||
protected $settings;
|
||||
protected $request;
|
||||
protected $lang;
|
||||
protected $member;
|
||||
protected $cache;
|
||||
protected $registry;
|
||||
protected $memberData;
|
||||
protected $cache;
|
||||
protected $caches;
|
||||
|
||||
/**
|
||||
* API Error string
|
||||
* Array of the API errors
|
||||
*
|
||||
* @var array Errors
|
||||
* @var $api_error
|
||||
*/
|
||||
public $api_error = array();
|
||||
|
||||
/**
|
||||
* API Path to IPB root (where init.php/index.php is)
|
||||
* API Path to IPB root (where initdata.php/index.php is)
|
||||
*
|
||||
* @var string Path to IPB root folder
|
||||
* @var $path_to_ipb
|
||||
*/
|
||||
public $path_to_ipb = '';
|
||||
|
||||
/**
|
||||
* Loads the API Classes
|
||||
* Loads the registry class
|
||||
*
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
/* Path not set? */
|
||||
if( !$this->path_to_ipb )
|
||||
{
|
||||
/* Constant available? */
|
||||
if( defined('DOC_IPS_ROOT_PATH') )
|
||||
{
|
||||
$this->path_to_ipb = DOC_IPS_ROOT_PATH;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Fallback.. */
|
||||
$this->path_to_ipb = dirname(__FILE__) . '/../../';
|
||||
}
|
||||
}
|
||||
|
||||
/* Load the registry */
|
||||
require_once( $this->path_to_ipb . 'initdata.php' );
|
||||
require_once( $this->path_to_ipb . CP_DIRECTORY . '/sources/base/ipsRegistry.php' );
|
||||
require_once( $this->path_to_ipb . 'initdata.php' );/*noLibHook*/
|
||||
require_once( $this->path_to_ipb . CP_DIRECTORY . '/sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
|
||||
$this->registry = ipsRegistry::instance();
|
||||
$this->registry->init();
|
||||
|
||||
/* Make Shortcuts */
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->lang = $this->registry->getClass('class_localization');
|
||||
$this->member = $this->registry->member();
|
||||
/* Make registry shortcuts */
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->lang = $this->registry->getClass('class_localization');
|
||||
$this->member = $this->registry->member();
|
||||
$this->memberData =& $this->registry->member()->fetchMemberData();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
|
||||
/* INIT Child? */
|
||||
if( method_exists( $this, 'childInit' ) )
|
||||
|
||||
Reference in new issue
Block a user