changed many files for php7 compatibility
This commit is contained in:
parent
e132623d43
commit
1ced89908e
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
class API extends Controller
|
class API extends Controller
|
||||||
{
|
{
|
||||||
function API()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller();
|
parent::__construct ();
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_access ()
|
function check_access ()
|
||||||
|
@ -13,9 +13,9 @@ class Code extends Controller
|
|||||||
var $VIEW_FETCH = 'code_fetch';
|
var $VIEW_FETCH = 'code_fetch';
|
||||||
var $VIEW_SEARCH = 'code_search';
|
var $VIEW_SEARCH = 'code_search';
|
||||||
|
|
||||||
function Code ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
$this->load->library ('Converter', 'converter');
|
$this->load->library ('Converter', 'converter');
|
||||||
|
@ -6,9 +6,9 @@ class File extends Controller
|
|||||||
var $VIEW_HOME = 'file_home';
|
var $VIEW_HOME = 'file_home';
|
||||||
var $VIEW_SHOW = 'file_show';
|
var $VIEW_SHOW = 'file_show';
|
||||||
|
|
||||||
function File ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
$this->load->library ('Converter', 'converter');
|
$this->load->library ('Converter', 'converter');
|
||||||
|
@ -5,9 +5,9 @@ class Graph extends Controller
|
|||||||
var $VIEW_ERROR = 'error';
|
var $VIEW_ERROR = 'error';
|
||||||
var $VIEW_MAIN = 'graph_main';
|
var $VIEW_MAIN = 'graph_main';
|
||||||
|
|
||||||
function Graph ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
$this->load->library ('Converter', 'converter');
|
$this->load->library ('Converter', 'converter');
|
||||||
|
@ -6,9 +6,9 @@ class Issue extends Controller
|
|||||||
var $VIEW_HOME = 'issue_home';
|
var $VIEW_HOME = 'issue_home';
|
||||||
var $VIEW_SHOW = 'issue_show';
|
var $VIEW_SHOW = 'issue_show';
|
||||||
|
|
||||||
function Issue ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
|
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
class Main extends Controller
|
class Main extends Controller
|
||||||
{
|
{
|
||||||
function Main()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller();
|
parent::__construct ();
|
||||||
|
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
|
@ -10,9 +10,9 @@ class Project extends Controller
|
|||||||
var $VIEW_LOG = 'log';
|
var $VIEW_LOG = 'log';
|
||||||
var $VIEW_MAP = 'project_map';
|
var $VIEW_MAP = 'project_map';
|
||||||
|
|
||||||
function Project ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
|
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
|
@ -10,9 +10,9 @@ class Site extends Controller
|
|||||||
var $VIEW_CATALOG = 'site_catalog';
|
var $VIEW_CATALOG = 'site_catalog';
|
||||||
var $VIEW_LOG = 'log';
|
var $VIEW_LOG = 'log';
|
||||||
|
|
||||||
function Site ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
|
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
|
@ -8,9 +8,9 @@ class User extends Controller
|
|||||||
var $VIEW_ISSUE = 'user_issue';
|
var $VIEW_ISSUE = 'user_issue';
|
||||||
var $VIEW_SETTINGS = 'user_settings';
|
var $VIEW_SETTINGS = 'user_settings';
|
||||||
|
|
||||||
function User ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
|
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
|
@ -9,9 +9,9 @@ class Wiki extends Controller
|
|||||||
var $VIEW_EDITX = 'wiki_editx';
|
var $VIEW_EDITX = 'wiki_editx';
|
||||||
var $VIEW_DELETE = 'wiki_delete';
|
var $VIEW_DELETE = 'wiki_delete';
|
||||||
|
|
||||||
function Wiki ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Controller ();
|
parent::__construct ();
|
||||||
|
|
||||||
$this->load->helper ('url');
|
$this->load->helper ('url');
|
||||||
$this->load->helper ('form');
|
$this->load->helper ('form');
|
||||||
|
@ -72,7 +72,7 @@ class Lang_detect
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function Lang_detect()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->obj =& get_instance();
|
$this->obj =& get_instance();
|
||||||
// get list of supported languages
|
// get list of supported languages
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
class Converter
|
class Converter
|
||||||
{
|
{
|
||||||
function Converter ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class IssueHelper
|
|||||||
var $PRIORITY_LOW = 'low';
|
var $PRIORITY_LOW = 'low';
|
||||||
var $PRIORITY_OTHER = 'other';
|
var $PRIORITY_OTHER = 'other';
|
||||||
|
|
||||||
function IssueHelper ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class WikiHelper
|
|||||||
'##F' => '__FILE__'
|
'##F' => '__FILE__'
|
||||||
);
|
);
|
||||||
|
|
||||||
function WikiHelper ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ class CodeModel extends Model
|
|||||||
return $this->errmsg;
|
return $this->errmsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function CodeModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@ require_once 'loginmodel.php';
|
|||||||
|
|
||||||
class DbLoginModel extends LoginModel
|
class DbLoginModel extends LoginModel
|
||||||
{
|
{
|
||||||
function DbLoginModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::LoginModel ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class DbLoginModel extends LoginModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: implement $insider like LdapLoginModel
|
// TODO: implement $insider like LdapLoginModel
|
||||||
return parent::authenticate ($userid, $user->passwd, $user->email);
|
return parent::__authenticate ($userid, $user->passwd, $user->email);
|
||||||
}
|
}
|
||||||
|
|
||||||
function changePassword ($userid, $passwd)
|
function changePassword ($userid, $passwd)
|
||||||
|
@ -14,9 +14,9 @@ class FileModel extends Model
|
|||||||
return $this->errmsg;
|
return $this->errmsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function FileModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ $CI->load->model('CodeRepoModel');
|
|||||||
|
|
||||||
class GitModel extends CodeRepoModel
|
class GitModel extends CodeRepoModel
|
||||||
{
|
{
|
||||||
function GitModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::CodeRepoModel ();
|
parent::__construct ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function _canonical_path($path)
|
private function _canonical_path($path)
|
||||||
|
@ -14,9 +14,9 @@ class IssueModel extends Model
|
|||||||
return $this->errmsg;
|
return $this->errmsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function IssueModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@ require_once 'loginmodel.php';
|
|||||||
|
|
||||||
class LdapLoginModel extends LoginModel
|
class LdapLoginModel extends LoginModel
|
||||||
{
|
{
|
||||||
function LdapLoginModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::LoginModel ();
|
parent::__construct ();
|
||||||
}
|
}
|
||||||
|
|
||||||
function authenticate ($userid, $password)
|
function authenticate ($userid, $password)
|
||||||
@ -171,7 +171,7 @@ class LdapLoginModel extends LoginModel
|
|||||||
|
|
||||||
//@ldap_unbind ($ldap);
|
//@ldap_unbind ($ldap);
|
||||||
@ldap_close ($ldap);
|
@ldap_close ($ldap);
|
||||||
return parent::authenticate ($userid, $password, $email, $insider);
|
return parent::__authenticate ($userid, $password, $email, $insider);
|
||||||
}
|
}
|
||||||
|
|
||||||
function queryUserInfo ($userid)
|
function queryUserInfo ($userid)
|
||||||
|
@ -9,9 +9,9 @@ class LoginModel extends Model
|
|||||||
{
|
{
|
||||||
var $error_message = '';
|
var $error_message = '';
|
||||||
|
|
||||||
function LoginModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->library ('session');
|
$this->load->library ('session');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ class LoginModel extends Model
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function authenticate ($userid, $password, $email = '', $insider = NULL)
|
function __authenticate ($userid, $password, $email = '', $insider = NULL)
|
||||||
{
|
{
|
||||||
//$server = $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
|
//$server = $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
|
||||||
$server = $_SERVER['HTTP_HOST'];
|
$server = $_SERVER['HTTP_HOST'];
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
class LogModel extends Model
|
class LogModel extends Model
|
||||||
{
|
{
|
||||||
function LogModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ $CI->load->model('SubversionModel');
|
|||||||
|
|
||||||
class ProjectModel extends Model
|
class ProjectModel extends Model
|
||||||
{
|
{
|
||||||
function ProjectModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
class SiteModel extends Model
|
class SiteModel extends Model
|
||||||
{
|
{
|
||||||
function SiteModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ $CI->load->model('CodeRepoModel');
|
|||||||
|
|
||||||
class SubversionModel extends CodeRepoModel
|
class SubversionModel extends CodeRepoModel
|
||||||
{
|
{
|
||||||
function SubversionModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::CodeRepoModel ();
|
parent::__construct ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function _canonical_path($path)
|
private function _canonical_path($path)
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
class UserModel extends Model
|
class UserModel extends Model
|
||||||
{
|
{
|
||||||
function UserModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ class WikiModel extends Model
|
|||||||
return $this->errmsg;
|
return $this->errmsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function WikiModel ()
|
function __construct ()
|
||||||
{
|
{
|
||||||
parent::Model ();
|
parent::__construct ();
|
||||||
$this->load->database ();
|
$this->load->database ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,10 +40,10 @@
|
|||||||
*/
|
*/
|
||||||
class CI_Base extends CI_Loader {
|
class CI_Base extends CI_Loader {
|
||||||
|
|
||||||
function CI_Base()
|
function __construct()
|
||||||
{
|
{
|
||||||
// This allows syntax like $this->load->foo() to work
|
// This allows syntax like $this->load->foo() to work
|
||||||
parent::CI_Loader();
|
parent::__construct();
|
||||||
$this->load =& $this;
|
$this->load =& $this;
|
||||||
|
|
||||||
// This allows resources used within controller constructors to work
|
// This allows resources used within controller constructors to work
|
||||||
@ -66,4 +66,4 @@ function &get_instance()
|
|||||||
|
|
||||||
|
|
||||||
/* End of file Base4.php */
|
/* End of file Base4.php */
|
||||||
/* Location: ./system/codeigniter/Base4.php */
|
/* Location: ./system/codeigniter/Base4.php */
|
||||||
|
@ -34,7 +34,7 @@ class CI_Base {
|
|||||||
|
|
||||||
private static $instance;
|
private static $instance;
|
||||||
|
|
||||||
public function CI_Base()
|
public function __construct()
|
||||||
{
|
{
|
||||||
self::$instance =& $this;
|
self::$instance =& $this;
|
||||||
}
|
}
|
||||||
|
@ -139,13 +139,15 @@ function &load_class($class, $instantiate = TRUE)
|
|||||||
{
|
{
|
||||||
$name = config_item('subclass_prefix').$class;
|
$name = config_item('subclass_prefix').$class;
|
||||||
|
|
||||||
$objects[$class] =& instantiate_class(new $name());
|
$obj = new $name();
|
||||||
|
$objects[$class] =& instantiate_class(obj);
|
||||||
return $objects[$class];
|
return $objects[$class];
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = ($class != 'Controller') ? 'CI_'.$class : $class;
|
$name = ($class != 'Controller') ? 'CI_'.$class : $class;
|
||||||
|
|
||||||
$objects[$class] =& instantiate_class(new $name());
|
$obj = new $name();
|
||||||
|
$objects[$class] =& instantiate_class($obj);
|
||||||
return $objects[$class];
|
return $objects[$class];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,4 +420,4 @@ function _exception_handler($severity, $message, $filepath, $line)
|
|||||||
|
|
||||||
|
|
||||||
/* End of file Common.php */
|
/* End of file Common.php */
|
||||||
/* Location: ./system/codeigniter/Common.php */
|
/* Location: ./system/codeigniter/Common.php */
|
||||||
|
@ -130,7 +130,8 @@ function &DB($params = '', $active_record_override = FALSE)
|
|||||||
|
|
||||||
// Instantiate the DB adapter
|
// Instantiate the DB adapter
|
||||||
$driver = 'CI_DB_'.$params['dbdriver'].'_driver';
|
$driver = 'CI_DB_'.$params['dbdriver'].'_driver';
|
||||||
$DB =& instantiate_class(new $driver($params));
|
$obj = new $driver($params);
|
||||||
|
$DB =& instantiate_class($obj);
|
||||||
|
|
||||||
if ($DB->autoinit == TRUE)
|
if ($DB->autoinit == TRUE)
|
||||||
{
|
{
|
||||||
@ -143,4 +144,4 @@ function &DB($params = '', $active_record_override = FALSE)
|
|||||||
|
|
||||||
|
|
||||||
/* End of file DB.php */
|
/* End of file DB.php */
|
||||||
/* Location: ./system/database/DB.php */
|
/* Location: ./system/database/DB.php */
|
||||||
|
@ -33,7 +33,7 @@ class CI_DB_Cache {
|
|||||||
* Grabs the CI super object instance so we can access it.
|
* Grabs the CI super object instance so we can access it.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_DB_Cache(&$db)
|
function __construct(&$db)
|
||||||
{
|
{
|
||||||
// Assign the main CI object to $this->CI
|
// Assign the main CI object to $this->CI
|
||||||
// and load the file helper since we use it a lot
|
// and load the file helper since we use it a lot
|
||||||
|
@ -78,7 +78,7 @@ class CI_DB_driver {
|
|||||||
*
|
*
|
||||||
* @param array
|
* @param array
|
||||||
*/
|
*/
|
||||||
function CI_DB_driver($params)
|
function __construct($params)
|
||||||
{
|
{
|
||||||
if (is_array($params))
|
if (is_array($params))
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@ class CI_DB_forge {
|
|||||||
* Grabs the CI super object instance so we can access it.
|
* Grabs the CI super object instance so we can access it.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_DB_forge()
|
function __construct()
|
||||||
{
|
{
|
||||||
// Assign the main database object to $this->db
|
// Assign the main database object to $this->db
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
|
@ -33,7 +33,7 @@ class CI_DB_utility extends CI_DB_forge {
|
|||||||
* Grabs the CI super object instance so we can access it.
|
* Grabs the CI super object instance so we can access it.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_DB_utility()
|
function __construct()
|
||||||
{
|
{
|
||||||
// Assign the main database object to $this->db
|
// Assign the main database object to $this->db
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
|
@ -48,9 +48,9 @@ class CI_DB_odbc_driver extends CI_DB {
|
|||||||
var $_random_keyword;
|
var $_random_keyword;
|
||||||
|
|
||||||
|
|
||||||
function CI_DB_odbc_driver($params)
|
function __construct($params)
|
||||||
{
|
{
|
||||||
parent::CI_DB($params);
|
parent::__construct($params);
|
||||||
|
|
||||||
$this->_random_keyword = ' RND('.time().')'; // database specific random keyword
|
$this->_random_keyword = ' RND('.time().')'; // database specific random keyword
|
||||||
}
|
}
|
||||||
@ -636,4 +636,4 @@ class CI_DB_odbc_driver extends CI_DB {
|
|||||||
|
|
||||||
|
|
||||||
/* End of file odbc_driver.php */
|
/* End of file odbc_driver.php */
|
||||||
/* Location: ./system/database/drivers/odbc/odbc_driver.php */
|
/* Location: ./system/database/drivers/odbc/odbc_driver.php */
|
||||||
|
@ -45,7 +45,7 @@ class CI_Calendar {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Calendar($config = array())
|
function __construct($config = array())
|
||||||
{
|
{
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class CI_Cart {
|
|||||||
*
|
*
|
||||||
* The constructor loads the Session class, used to store the shopping cart contents.
|
* The constructor loads the Session class, used to store the shopping cart contents.
|
||||||
*/
|
*/
|
||||||
function CI_Cart($params = array())
|
function __construct($params = array())
|
||||||
{
|
{
|
||||||
// Set the super object to a local variable for use later
|
// Set the super object to a local variable for use later
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
|
@ -42,7 +42,7 @@ class CI_Config {
|
|||||||
* @param boolean true if errors should just return false, false if an error message should be displayed
|
* @param boolean true if errors should just return false, false if an error message should be displayed
|
||||||
* @return boolean if the file was successfully loaded or not
|
* @return boolean if the file was successfully loaded or not
|
||||||
*/
|
*/
|
||||||
function CI_Config()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->config =& get_config();
|
$this->config =& get_config();
|
||||||
log_message('debug', "Config Class Initialized");
|
log_message('debug', "Config Class Initialized");
|
||||||
|
@ -37,9 +37,9 @@ class Controller extends CI_Base {
|
|||||||
*
|
*
|
||||||
* Calls the initialize() function
|
* Calls the initialize() function
|
||||||
*/
|
*/
|
||||||
function Controller()
|
function __construct()
|
||||||
{
|
{
|
||||||
parent::CI_Base();
|
parent::__construct();
|
||||||
$this->_ci_initialize();
|
$this->_ci_initialize();
|
||||||
log_message('debug', "Controller Class Initialized");
|
log_message('debug', "Controller Class Initialized");
|
||||||
}
|
}
|
||||||
@ -124,4 +124,4 @@ class Controller extends CI_Base {
|
|||||||
// END _Controller class
|
// END _Controller class
|
||||||
|
|
||||||
/* End of file Controller.php */
|
/* End of file Controller.php */
|
||||||
/* Location: ./system/libraries/Controller.php */
|
/* Location: ./system/libraries/Controller.php */
|
||||||
|
@ -82,7 +82,7 @@ class CI_Email {
|
|||||||
*
|
*
|
||||||
* The constructor can be passed an array of config values
|
* The constructor can be passed an array of config values
|
||||||
*/
|
*/
|
||||||
function CI_Email($config = array())
|
function __construct($config = array())
|
||||||
{
|
{
|
||||||
if (count($config) > 0)
|
if (count($config) > 0)
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@ class CI_Encrypt {
|
|||||||
* Simply determines whether the mcrypt library exists.
|
* Simply determines whether the mcrypt library exists.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_Encrypt()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
$this->_mcrypt_exists = ( ! function_exists('mcrypt_encrypt')) ? FALSE : TRUE;
|
$this->_mcrypt_exists = ( ! function_exists('mcrypt_encrypt')) ? FALSE : TRUE;
|
||||||
|
@ -52,7 +52,7 @@ class CI_Exceptions {
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_Exceptions()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->ob_level = ob_get_level();
|
$this->ob_level = ob_get_level();
|
||||||
// Note: Do not log messages from this constructor.
|
// Note: Do not log messages from this constructor.
|
||||||
|
@ -41,7 +41,7 @@ class CI_Form_validation {
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_Form_validation($rules = array())
|
function __construct($rules = array())
|
||||||
{
|
{
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class CI_FTP {
|
|||||||
*
|
*
|
||||||
* The constructor can be passed an array of config values
|
* The constructor can be passed an array of config values
|
||||||
*/
|
*/
|
||||||
function CI_FTP($config = array())
|
function __construct($config = array())
|
||||||
{
|
{
|
||||||
if (count($config) > 0)
|
if (count($config) > 0)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ class CI_Hooks {
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_Hooks()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->_initialize();
|
$this->_initialize();
|
||||||
log_message('debug', "Hooks Class Initialized");
|
log_message('debug', "Hooks Class Initialized");
|
||||||
|
@ -83,7 +83,7 @@ class CI_Image_lib {
|
|||||||
* @param string
|
* @param string
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function CI_Image_lib($props = array())
|
function __construct($props = array())
|
||||||
{
|
{
|
||||||
if (count($props) > 0)
|
if (count($props) > 0)
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,7 @@ class CI_Input {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Input()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Input Class Initialized");
|
log_message('debug', "Input Class Initialized");
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class CI_Language {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Language()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Language Class Initialized");
|
log_message('debug', "Language Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class CI_Loader {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Loader()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->_ci_is_php5 = (floor(phpversion()) >= 5) ? TRUE : FALSE;
|
$this->_ci_is_php5 = (floor(phpversion()) >= 5) ? TRUE : FALSE;
|
||||||
$this->_ci_view_path = APPPATH.'views/';
|
$this->_ci_view_path = APPPATH.'views/';
|
||||||
@ -252,7 +252,8 @@ class CI_Loader {
|
|||||||
require_once(BASEPATH.'database/drivers/'.$CI->db->dbdriver.'/'.$CI->db->dbdriver.'_utility'.EXT);
|
require_once(BASEPATH.'database/drivers/'.$CI->db->dbdriver.'/'.$CI->db->dbdriver.'_utility'.EXT);
|
||||||
$class = 'CI_DB_'.$CI->db->dbdriver.'_utility';
|
$class = 'CI_DB_'.$CI->db->dbdriver.'_utility';
|
||||||
|
|
||||||
$CI->dbutil =& instantiate_class(new $class());
|
$obj = new $class();
|
||||||
|
$CI->dbutil =& instantiate_class($obj);
|
||||||
|
|
||||||
$CI->load->_ci_assign_to_models();
|
$CI->load->_ci_assign_to_models();
|
||||||
}
|
}
|
||||||
@ -1082,4 +1083,4 @@ class CI_Loader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* End of file Loader.php */
|
/* End of file Loader.php */
|
||||||
/* Location: ./system/libraries/Loader.php */
|
/* Location: ./system/libraries/Loader.php */
|
||||||
|
@ -37,7 +37,7 @@ class CI_Log {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Log()
|
function __construct()
|
||||||
{
|
{
|
||||||
$config =& get_config();
|
$config =& get_config();
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class Model {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function Model()
|
function __construct()
|
||||||
{
|
{
|
||||||
// If the magic __get() or __set() methods are used in a Model references can't be used.
|
// If the magic __get() or __set() methods are used in a Model references can't be used.
|
||||||
$this->_assign_libraries( (method_exists($this, '__get') OR method_exists($this, '__set')) ? FALSE : TRUE );
|
$this->_assign_libraries( (method_exists($this, '__get') OR method_exists($this, '__set')) ? FALSE : TRUE );
|
||||||
@ -80,4 +80,4 @@ class Model {
|
|||||||
// END Model Class
|
// END Model Class
|
||||||
|
|
||||||
/* End of file Model.php */
|
/* End of file Model.php */
|
||||||
/* Location: ./system/libraries/Model.php */
|
/* Location: ./system/libraries/Model.php */
|
||||||
|
@ -34,7 +34,7 @@ class CI_Output {
|
|||||||
var $enable_profiler = FALSE;
|
var $enable_profiler = FALSE;
|
||||||
|
|
||||||
|
|
||||||
function CI_Output()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Output Class Initialized");
|
log_message('debug', "Output Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class CI_Pagination {
|
|||||||
* @access public
|
* @access public
|
||||||
* @param array initialization parameters
|
* @param array initialization parameters
|
||||||
*/
|
*/
|
||||||
function CI_Pagination($params = array())
|
function __construct($params = array())
|
||||||
{
|
{
|
||||||
if (count($params) > 0)
|
if (count($params) > 0)
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ class CI_Profiler {
|
|||||||
|
|
||||||
var $CI;
|
var $CI;
|
||||||
|
|
||||||
function CI_Profiler()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
$this->CI->load->language('profiler');
|
$this->CI->load->language('profiler');
|
||||||
|
@ -43,7 +43,7 @@ class CI_Router {
|
|||||||
*
|
*
|
||||||
* Runs the route mapping function.
|
* Runs the route mapping function.
|
||||||
*/
|
*/
|
||||||
function CI_Router()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->config =& load_class('Config');
|
$this->config =& load_class('Config');
|
||||||
$this->uri =& load_class('URI');
|
$this->uri =& load_class('URI');
|
||||||
|
@ -51,7 +51,7 @@ class CI_Session {
|
|||||||
* The constructor runs the session routines automatically
|
* The constructor runs the session routines automatically
|
||||||
* whenever the class is instantiated.
|
* whenever the class is instantiated.
|
||||||
*/
|
*/
|
||||||
function CI_Session($params = array())
|
function __construct($params = array())
|
||||||
{
|
{
|
||||||
log_message('debug', "Session Class Initialized");
|
log_message('debug', "Session Class Initialized");
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
*/
|
*/
|
||||||
class CI_SHA {
|
class CI_SHA {
|
||||||
|
|
||||||
function CI_SHA()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "SHA1 Class Initialized");
|
log_message('debug', "SHA1 Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class CI_Table {
|
|||||||
var $empty_cells = "";
|
var $empty_cells = "";
|
||||||
|
|
||||||
|
|
||||||
function CI_Table()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Table Class Initialized");
|
log_message('debug', "Table Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ class CI_Trackback {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Trackback()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Trackback Class Initialized");
|
log_message('debug', "Trackback Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ class CI_Typography {
|
|||||||
* Nothing to do here...
|
* Nothing to do here...
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_Typography()
|
function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class CI_URI {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_URI()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->config =& load_class('Config');
|
$this->config =& load_class('Config');
|
||||||
log_message('debug', "URI Class Initialized");
|
log_message('debug', "URI Class Initialized");
|
||||||
|
@ -34,7 +34,7 @@ class CI_Unit_test {
|
|||||||
var $_template = NULL;
|
var $_template = NULL;
|
||||||
var $_template_rows = NULL;
|
var $_template_rows = NULL;
|
||||||
|
|
||||||
function CI_Unit_test()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Unit Testing Class Initialized");
|
log_message('debug', "Unit Testing Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ class CI_Upload {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function CI_Upload($props = array())
|
function __construct($props = array())
|
||||||
{
|
{
|
||||||
if (count($props) > 0)
|
if (count($props) > 0)
|
||||||
{
|
{
|
||||||
|
@ -56,7 +56,7 @@ class CI_User_agent {
|
|||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function CI_User_agent()
|
function __construct()
|
||||||
{
|
{
|
||||||
if (isset($_SERVER['HTTP_USER_AGENT']))
|
if (isset($_SERVER['HTTP_USER_AGENT']))
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ class CI_Validation {
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function CI_Validation()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ class CI_Xmlrpc {
|
|||||||
// VALUES THAT MULTIPLE CLASSES NEED
|
// VALUES THAT MULTIPLE CLASSES NEED
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
|
|
||||||
function CI_Xmlrpc ($config = array())
|
function __construct($config = array())
|
||||||
{
|
{
|
||||||
$this->xmlrpcName = $this->xmlrpcName;
|
$this->xmlrpcName = $this->xmlrpcName;
|
||||||
$this->xmlrpc_backslash = chr(92).chr(92);
|
$this->xmlrpc_backslash = chr(92).chr(92);
|
||||||
@ -359,9 +359,9 @@ class XML_RPC_Client extends CI_Xmlrpc
|
|||||||
var $timeout = 5;
|
var $timeout = 5;
|
||||||
var $no_multicall = false;
|
var $no_multicall = false;
|
||||||
|
|
||||||
function XML_RPC_Client($path, $server, $port=80)
|
function __construct($path, $server, $port=80)
|
||||||
{
|
{
|
||||||
parent::CI_Xmlrpc();
|
parent::__construct();
|
||||||
|
|
||||||
$this->port = $port;
|
$this->port = $port;
|
||||||
$this->server = $server;
|
$this->server = $server;
|
||||||
@ -434,7 +434,7 @@ class XML_RPC_Response
|
|||||||
var $errstr = '';
|
var $errstr = '';
|
||||||
var $headers = array();
|
var $headers = array();
|
||||||
|
|
||||||
function XML_RPC_Response($val, $code = 0, $fstr = '')
|
function __construct($val, $code = 0, $fstr = '')
|
||||||
{
|
{
|
||||||
if ($code != 0)
|
if ($code != 0)
|
||||||
{
|
{
|
||||||
@ -614,9 +614,9 @@ class XML_RPC_Message extends CI_Xmlrpc
|
|||||||
var $params = array();
|
var $params = array();
|
||||||
var $xh = array();
|
var $xh = array();
|
||||||
|
|
||||||
function XML_RPC_Message($method, $pars=0)
|
function __construct($method, $pars=0)
|
||||||
{
|
{
|
||||||
parent::CI_Xmlrpc();
|
parent::__construct();
|
||||||
|
|
||||||
$this->method_name = $method;
|
$this->method_name = $method;
|
||||||
if (is_array($pars) && count($pars) > 0)
|
if (is_array($pars) && count($pars) > 0)
|
||||||
@ -1209,9 +1209,9 @@ class XML_RPC_Values extends CI_Xmlrpc
|
|||||||
var $me = array();
|
var $me = array();
|
||||||
var $mytype = 0;
|
var $mytype = 0;
|
||||||
|
|
||||||
function XML_RPC_Values($val=-1, $type='')
|
function __construct($val=-1, $type='')
|
||||||
{
|
{
|
||||||
parent::CI_Xmlrpc();
|
parent::__construct();
|
||||||
|
|
||||||
if ($val != -1 OR $type != '')
|
if ($val != -1 OR $type != '')
|
||||||
{
|
{
|
||||||
@ -1418,4 +1418,4 @@ class XML_RPC_Values extends CI_Xmlrpc
|
|||||||
// END XML_RPC_Values Class
|
// END XML_RPC_Values Class
|
||||||
|
|
||||||
/* End of file Xmlrpc.php */
|
/* End of file Xmlrpc.php */
|
||||||
/* Location: ./system/libraries/Xmlrpc.php */
|
/* Location: ./system/libraries/Xmlrpc.php */
|
||||||
|
@ -48,9 +48,9 @@ class CI_Xmlrpcs extends CI_Xmlrpc
|
|||||||
// Constructor, more or less
|
// Constructor, more or less
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
|
|
||||||
function CI_Xmlrpcs($config=array())
|
function __construct($config=array())
|
||||||
{
|
{
|
||||||
parent::CI_Xmlrpc();
|
parent::__construct ();
|
||||||
$this->set_system_methods();
|
$this->set_system_methods();
|
||||||
|
|
||||||
if (isset($config['functions']) && is_array($config['functions']))
|
if (isset($config['functions']) && is_array($config['functions']))
|
||||||
@ -533,4 +533,4 @@ class CI_Xmlrpcs extends CI_Xmlrpc
|
|||||||
|
|
||||||
|
|
||||||
/* End of file Xmlrpcs.php */
|
/* End of file Xmlrpcs.php */
|
||||||
/* Location: ./system/libraries/Xmlrpcs.php */
|
/* Location: ./system/libraries/Xmlrpcs.php */
|
||||||
|
@ -38,7 +38,7 @@ class CI_Zip {
|
|||||||
var $file_num = 0;
|
var $file_num = 0;
|
||||||
var $offset = 0;
|
var $offset = 0;
|
||||||
|
|
||||||
function CI_Zip()
|
function __construct()
|
||||||
{
|
{
|
||||||
log_message('debug', "Zip Compression Class Initialized");
|
log_message('debug', "Zip Compression Class Initialized");
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class Scaffolding {
|
|||||||
var $base_url = '';
|
var $base_url = '';
|
||||||
var $lang = array();
|
var $lang = array();
|
||||||
|
|
||||||
function Scaffolding($db_table)
|
function __construct($db_table)
|
||||||
{
|
{
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
|
|
||||||
@ -288,4 +288,4 @@ class Scaffolding {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* End of file Scaffolding.php */
|
/* End of file Scaffolding.php */
|
||||||
/* Location: ./system/scaffolding/Scaffolding.php */
|
/* Location: ./system/scaffolding/Scaffolding.php */
|
||||||
|
Loading…
Reference in New Issue
Block a user