Model.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /**
  3. * CodeIgniter
  4. *
  5. * An open source application development framework for PHP 5.1.6 or newer
  6. *
  7. * @package CodeIgniter
  8. * @author ExpressionEngine Dev Team
  9. * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
  10. * @license http://codeigniter.com/user_guide/license.html
  11. * @link http://codeigniter.com
  12. * @since Version 1.0
  13. * @filesource
  14. */
  15. // ------------------------------------------------------------------------
  16. /**
  17. * CodeIgniter Model Class
  18. *
  19. * @package CodeIgniter
  20. * @subpackage Libraries
  21. * @category Libraries
  22. * @author ExpressionEngine Dev Team
  23. * @link http://codeigniter.com/user_guide/libraries/config.html
  24. */
  25. class CI_Model {
  26. /**
  27. * Constructor
  28. *
  29. * @access public
  30. */
  31. function __construct()
  32. {
  33. log_message('debug', "Model Class Initialized");
  34. }
  35. /**
  36. * __get
  37. *
  38. * Allows models to access CI's loaded classes using the same
  39. * syntax as controllers.
  40. *
  41. * @param string
  42. * @access private
  43. */
  44. function __get($key)
  45. {
  46. $CI =& get_instance();
  47. return $CI->$key;
  48. }
  49. }
  50. // END Model Class
  51. /* End of file Model.php */
  52. /* Location: ./system/core/Model.php */