blob: 8fee5365e9323c370f48c82f69e768ac1ca2445c [file] [log] [blame]
Alex Bilbie5e971082012-09-03 18:57:35 +01001<?php
2
3class 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}