blob: 240db4397d68b2666830cbb67eb0e68c38cfc35b [file] [log] [blame]
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Code Igniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author Rick Ellis
* @copyright Copyright (c) 2006, pMachine, Inc.
* @license http://www.codeignitor.com/user_guide/license.html
* @link http://www.codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* Code Igniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author Rick Ellis
* @link http://www.codeigniter.com/user_guide/libraries/config.html
*/
class Model {
/**
* Constructor
*
* @access public
*/
function Model()
{
$this->_assign_libraries();
log_message('debug', "Model Class Initialized");
}
/**
* Assign Libraries
*
* Creates local references to all currently instantiated objects
* so that any syntax that can be legally used in a controller
* can be used within models.
*
* @access private
*/
function _assign_libraries()
{
$CI =& get_instance();
foreach (array_keys(get_object_vars($CI)) as $key)
{
$this->$key =& $CI->$key;
}
}
}
// END Model Class
?>