@@ 31-38 (lines=8) @@ | ||
28 | private $timeStamp = 0; |
|
29 | private $daysInMonth = 25; //set to unrealistic number to make sure that it actually gets set correctly |
|
30 | ||
31 | public static function setDayNames($dayArray) |
|
32 | { |
|
33 | if (!is_array($dayArray) || count($dayArray) != 7) { |
|
34 | debug::show($dayArray); |
|
35 | user_error('There should be seven days in the array passed tot he setDayNames function in the ManyMonthsCalendar Class', E_USER_ERROR); |
|
36 | } |
|
37 | self::$day_names = $dayArray; |
|
38 | } |
|
39 | ||
40 | public static function setMonthNames($monthArray) |
|
41 | { |
|
@@ 40-47 (lines=8) @@ | ||
37 | self::$day_names = $dayArray; |
|
38 | } |
|
39 | ||
40 | public static function setMonthNames($monthArray) |
|
41 | { |
|
42 | if (!is_array($monthArray) || count($monthArray) != 12) { |
|
43 | debug::show($monthArray); |
|
44 | user_error('There should be twelve months in the array passed tot he setMonthNames function in the ManyMonthsCalendar Class', E_USER_ERROR); |
|
45 | } |
|
46 | self::$month_names = $monthArray; |
|
47 | } |
|
48 | ||
49 | public static function setPreviousMonthNavText($text) |
|
50 | { |