CI框架源码阅读---------Model.php_PHP教程
程序员文章站
2024-01-01 08:33:28
...
[php]
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
class CI_Model {
/**
* Constructor
*
* @access public
*/
function __construct()
{
log_message('debug', "Model Class Initialized");
}
/**
* __get
*
* Allows models to access CI's loaded classes using the same
* syntax as controllers.
* 允许模型使用与控制器相同的方法去访问CI控制器载入的类
* @param string
* @access private
*/
function __get($key)
{
$CI =& get_instance();
return $CI->$key;
}
}
// END Model Class
/* End of file Model.php */
/* Location: ./system/core/Model.php */
推荐阅读
-
[PHP源码阅读]empty和isset函数,emptyisset_PHP教程
-
CI框架源码阅读---------Model.php_PHP教程
-
CI框架源码阅读笔记8 控制器Controller.php
-
CI框架Session.php源码分析,ci框架session.php_PHP教程
-
CI框架源码翻阅-Utf8.php
-
CI框架源码阅读---------Controller.php
-
[PHP源码阅读]array_pop和array_shift函数,jsarraypopshift_PHP教程
-
CI框架源码阅读---------基准测试类Benchmark.php_PHP教程
-
CI框架源码阅读笔记8 控制器Controller.php_PHP教程
-
Laravel与CI框架中截取字符串函数,laravelci_PHP教程