blob: cd64468b86e2dca4b10b5acb0120d8ee3f6c1e2e [file] [log] [blame]
Andrey Andreev64e98aa2012-01-07 20:29:10 +02001<?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
Andrey Andreev64e98aa2012-01-07 20:29:10 +02008 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05009 * Licensed under the Open Software License version 3.0
Andrey Andreev64e98aa2012-01-07 20:29:10 +020010 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -050011 * 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
Greg Aker0defe5d2012-01-01 18:46:41 -060021 * @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/)
Derek Jonesf4a4bd82011-10-20 12:18:42 -050022 * @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
Andrey Andreev64e98aa2012-01-07 20:29:10 +020041 public function __construct()
Derek Allard2067d1a2008-11-13 22:59:24 +000042 {
Derek Allard2067d1a2008-11-13 22:59:24 +000043 log_message('debug', "Model Class Initialized");
44 }
45
46 /**
Pascal Kriete287781e2010-11-10 15:43:49 -050047 * __get
Derek Allard2067d1a2008-11-13 22:59:24 +000048 *
Pascal Kriete287781e2010-11-10 15:43:49 -050049 * Allows models to access CI's loaded classes using the same
50 * syntax as controllers.
Derek Allard2067d1a2008-11-13 22:59:24 +000051 *
David Behlercda768a2011-08-14 23:52:48 +020052 * @param string
Barry Mienydd671972010-10-04 16:33:58 +020053 */
Andrey Andreev64e98aa2012-01-07 20:29:10 +020054 public function __get($key)
Derek Allard2067d1a2008-11-13 22:59:24 +000055 {
Barry Mienydd671972010-10-04 16:33:58 +020056 $CI =& get_instance();
Pascal Kriete287781e2010-11-10 15:43:49 -050057 return $CI->$key;
Derek Allard2067d1a2008-11-13 22:59:24 +000058 }
Derek Allard2067d1a2008-11-13 22:59:24 +000059}
Derek Allard2067d1a2008-11-13 22:59:24 +000060
61/* End of file Model.php */
Andrey Andreev64e98aa2012-01-07 20:29:10 +020062/* Location: ./system/core/Model.php */