blob: c34bab64b0b3812e094fb3057db65b358b31abf3 [file] [log] [blame]
Derek Jones37f4b9c2011-07-01 17:56:50 -05001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00002/**
3 * CodeIgniter
4 *
Greg Aker741de1c2010-11-10 14:52:57 -06005 * An open source application development framework for PHP 5.1.6 or newer
Derek Allard2067d1a2008-11-13 22:59:24 +00006 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05007 * NOTICE OF LICENSE
8 *
9 * Licensed under the Open Software License version 3.0
10 *
11 * This source file is subject to the Open Software License (OSL 3.0) that is
12 * bundled with this package in the files license.txt / license.rst. It is
13 * also available through the world wide web at this URL:
14 * http://opensource.org/licenses/OSL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
Derek Allard2067d1a2008-11-13 22:59:24 +000019 * @package CodeIgniter
Derek Jonesf4a4bd82011-10-20 12:18:42 -050020 * @author EllisLab Dev Team
21 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/)
22 * @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
Derek Allard2067d1a2008-11-13 22:59:24 +000023 * @link http://codeigniter.com
24 * @since Version 1.0
25 * @filesource
26 */
27
28// ------------------------------------------------------------------------
29
30/**
31 * CodeIgniter Model Class
32 *
33 * @package CodeIgniter
34 * @subpackage Libraries
35 * @category Libraries
Derek Jonesf4a4bd82011-10-20 12:18:42 -050036 * @author EllisLab Dev Team
Derek Allard2067d1a2008-11-13 22:59:24 +000037 * @link http://codeigniter.com/user_guide/libraries/config.html
38 */
Derek Jones8eae4d72010-03-02 13:47:19 -060039class CI_Model {
Derek Allard2067d1a2008-11-13 22:59:24 +000040
Derek Allard2067d1a2008-11-13 22:59:24 +000041 /**
42 * Constructor
43 *
44 * @access public
45 */
Pascal Kriete287781e2010-11-10 15:43:49 -050046 function __construct()
Derek Allard2067d1a2008-11-13 22:59:24 +000047 {
Derek Allard2067d1a2008-11-13 22:59:24 +000048 log_message('debug', "Model Class Initialized");
49 }
50
51 /**
Pascal Kriete287781e2010-11-10 15:43:49 -050052 * __get
Derek Allard2067d1a2008-11-13 22:59:24 +000053 *
Pascal Kriete287781e2010-11-10 15:43:49 -050054 * Allows models to access CI's loaded classes using the same
55 * syntax as controllers.
Derek Allard2067d1a2008-11-13 22:59:24 +000056 *
David Behlercda768a2011-08-14 23:52:48 +020057 * @param string
Derek Allard2067d1a2008-11-13 22:59:24 +000058 * @access private
Barry Mienydd671972010-10-04 16:33:58 +020059 */
Pascal Kriete287781e2010-11-10 15:43:49 -050060 function __get($key)
Derek Allard2067d1a2008-11-13 22:59:24 +000061 {
Barry Mienydd671972010-10-04 16:33:58 +020062 $CI =& get_instance();
Pascal Kriete287781e2010-11-10 15:43:49 -050063 return $CI->$key;
Derek Allard2067d1a2008-11-13 22:59:24 +000064 }
Derek Allard2067d1a2008-11-13 22:59:24 +000065}
66// END Model Class
67
68/* End of file Model.php */
Derek Jonesc68dfbf2010-03-02 12:59:23 -060069/* Location: ./system/core/Model.php */