Alex Bilbie | 5e97108 | 2012-09-03 18:57:35 +0100 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | class Mock_Libraries_Calendar extends CI_Calendar { |
| 4 | |
| 5 | public function __construct($config = array()) |
| 6 | { |
| 7 | $this->CI = new stdClass; |
| 8 | $this->CI->lang = new Mock_Core_Lang(); |
| 9 | |
| 10 | if ( ! in_array('calendar_lang.php', $this->CI->lang->is_loaded, TRUE)) |
| 11 | { |
| 12 | $this->CI->lang->load('calendar'); |
| 13 | } |
| 14 | |
| 15 | $this->local_time = time(); |
| 16 | |
| 17 | if (count($config) > 0) |
| 18 | { |
| 19 | $this->initialize($config); |
| 20 | } |
| 21 | |
| 22 | log_message('debug', 'Calendar Class Initialized'); |
| 23 | } |
| 24 | |
| 25 | } |