| <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| * An open source application development framework for PHP 4.3.2 or newer |
| * @copyright Copyright (c) 2006, pMachine, Inc. |
| * @license http://www.codeignitor.com/user_guide/license.html |
| * @link http://www.codeigniter.com |
| // ------------------------------------------------------------------------ |
| * Code Igniter Model Class |
| * @link http://www.codeigniter.com/user_guide/libraries/config.html |
| $this->_assign_libraries(FALSE); |
| log_message('debug', "Model Class Initialized"); |
| * 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. |
| function _assign_libraries($use_reference = TRUE) |
| foreach ($obj->ci_is_loaded as $val) |
| if ( ! isset($this->$val)) |
| if ($use_reference === TRUE) |
| $this->$val =& $obj->$val; |
| $this->$val = $obj->$val; |
| // END _assign_libraries() |