@@ -11,9 +11,9 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * Properties |
|
| 15 | - * |
|
| 16 | - */ |
|
| 14 | + * Properties |
|
| 15 | + * |
|
| 16 | + */ |
|
| 17 | 17 | private $today; |
| 18 | 18 | private $firstDayInWeekOfMonth; |
| 19 | 19 | private $lastDayInLastWeek; |
@@ -23,11 +23,11 @@ discard block |
||
| 23 | 23 | private $nextMonth; |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * Constructor |
|
| 27 | - * |
|
| 28 | - * @param string date in month to display. Format yyyy-mm-dd |
|
| 29 | - * |
|
| 30 | - */ |
|
| 26 | + * Constructor |
|
| 27 | + * |
|
| 28 | + * @param string date in month to display. Format yyyy-mm-dd |
|
| 29 | + * |
|
| 30 | + */ |
|
| 31 | 31 | public function __construct($displayDate = null) |
| 32 | 32 | { |
| 33 | 33 | // setlocale(LC_TIME, "Swedish"); |
@@ -80,49 +80,49 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * Get current month with month and year |
|
| 84 | - */ |
|
| 83 | + * Get current month with month and year |
|
| 84 | + */ |
|
| 85 | 85 | public function thisMonth() |
| 86 | 86 | { |
| 87 | 87 | return utf8_encode(strftime("%B %Y", strtotime($this->thisMonth->format('Y-m-d')))); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * Get previous month in text format |
|
| 92 | - */ |
|
| 91 | + * Get previous month in text format |
|
| 92 | + */ |
|
| 93 | 93 | public function prevMonth() |
| 94 | 94 | { |
| 95 | 95 | return utf8_encode(strftime("%B", strtotime($this->prevMonth->format('Y-m-d')))); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * Get previous month in format yyyy-mm-dd |
|
| 100 | - */ |
|
| 99 | + * Get previous month in format yyyy-mm-dd |
|
| 100 | + */ |
|
| 101 | 101 | public function prevMonthDate() |
| 102 | 102 | { |
| 103 | 103 | return $this->prevMonth->format('Y-m-d'); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | - * Get next month in text format |
|
| 108 | - */ |
|
| 107 | + * Get next month in text format |
|
| 108 | + */ |
|
| 109 | 109 | public function nextMonth() |
| 110 | 110 | { |
| 111 | 111 | return utf8_encode(strftime("%B", strtotime($this->nextMonth->format('Y-m-d')))); |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * Get next month in format yyyy-mm-dd |
|
| 116 | - */ |
|
| 115 | + * Get next month in format yyyy-mm-dd |
|
| 116 | + */ |
|
| 117 | 117 | public function nextMonthDate() |
| 118 | 118 | { |
| 119 | 119 | return $this->nextMonth->format('Y-m-d'); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * Get all dates in month with additional days in first and last week. |
|
| 124 | - * |
|
| 125 | - */ |
|
| 123 | + * Get all dates in month with additional days in first and last week. |
|
| 124 | + * |
|
| 125 | + */ |
|
| 126 | 126 | public function datesInMonth() |
| 127 | 127 | { |
| 128 | 128 | $date = $this->firstDayInWeekOfMonth; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This is a Anax pagecontroller. |
|
| 4 | - * |
|
| 5 | - */ |
|
| 3 | + * This is a Anax pagecontroller. |
|
| 4 | + * |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | // Get environment & autoloader and the $app-object. |
| 8 | 8 | require __DIR__.'/config.php'; |