summaryrefslogtreecommitdiffstats
path: root/tests/mocks/libraries/calendar.php
blob: 8fee5365e9323c370f48c82f69e768ac1ca2445c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

class Mock_Libraries_Calendar extends CI_Calendar {

	public function __construct($config = array())
	{
		$this->CI = new stdClass;
		$this->CI->lang = new Mock_Core_Lang();

		if ( ! in_array('calendar_lang.php', $this->CI->lang->is_loaded, TRUE))
		{
			$this->CI->lang->load('calendar');
		}

		$this->local_time = time();

		if (count($config) > 0)
		{
			$this->initialize($config);
		}

		log_message('debug', 'Calendar Class Initialized');
	}

}