Model.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 EllisLab Dev Team
  9. * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
  10. * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
  11. * @license http://codeigniter.com/user_guide/license.html
  12. * @link http://codeigniter.com
  13. * @since Version 1.0
  14. * @filesource
  15. */
  16. // ------------------------------------------------------------------------
  17. /**
  18. * CodeIgniter Model Class
  19. *
  20. * @package CodeIgniter
  21. * @subpackage Libraries
  22. * @category Libraries
  23. * @author EllisLab Dev Team
  24. * @link http://codeigniter.com/user_guide/libraries/config.html
  25. */
  26. class CI_Model {
  27. /**
  28. * Constructor
  29. *
  30. * @access public
  31. */
  32. function __construct()
  33. {
  34. log_message('debug', "Model Class Initialized");
  35. }
  36. /**
  37. * __get
  38. *
  39. * Allows models to access CI's loaded classes using the same
  40. * syntax as controllers.
  41. *
  42. * @param string
  43. * @access private
  44. */
  45. function __get($key)
  46. {
  47. $CI =& get_instance();
  48. return $CI->$key;
  49. }
  50. }
  51. // END Model Class
  52. /* End of file Model.php */
  53. /* Location: ./system/core/Model.php */