@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Load Calendar decorator base class. |
55 | 55 | */ |
56 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
56 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Static utlities to help with fetching textual representations of months and |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $days = self::weekdayNames($format); |
208 | 208 | $stamp = $Calendar->prevDay('timestamp'); |
209 | 209 | $cE = $Calendar->getEngine(); |
210 | - require_once __DIR__ . '/Date/Calc.php'; |
|
210 | + require_once __DIR__.'/Date/Calc.php'; |
|
211 | 211 | $day = Date_Calc::dayOfWeek($cE->stampToDay($stamp), $cE->stampToMonth($stamp), $cE->stampToYear($stamp)); |
212 | 212 | |
213 | 213 | return $days[$day]; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | public static function thisDayName($Calendar, $format = 'long') |
227 | 227 | { |
228 | 228 | $days = self::weekdayNames($format); |
229 | - require_once __DIR__ . '/Date/Calc.php'; |
|
229 | + require_once __DIR__.'/Date/Calc.php'; |
|
230 | 230 | $day = Date_Calc::dayOfWeek($Calendar->thisDay(), $Calendar->thisMonth(), $Calendar->thisYear()); |
231 | 231 | |
232 | 232 | return $days[$day]; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $days = self::weekdayNames($format); |
247 | 247 | $stamp = $Calendar->nextDay('timestamp'); |
248 | 248 | $cE = $Calendar->getEngine(); |
249 | - require_once __DIR__ . '/Date/Calc.php'; |
|
249 | + require_once __DIR__.'/Date/Calc.php'; |
|
250 | 250 | $day = Date_Calc::dayOfWeek($cE->stampToDay($stamp), $cE->stampToMonth($stamp), $cE->stampToYear($stamp)); |
251 | 251 | |
252 | 252 | return $days[$day]; |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | public function prev($Calendar, $unit) |
146 | 146 | { |
147 | - $method = 'prev' . $unit; |
|
147 | + $method = 'prev'.$unit; |
|
148 | 148 | $stamp = $Calendar->{$method}('timestamp'); |
149 | 149 | |
150 | 150 | return $this->buildUriString($Calendar, $method, $stamp); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function this($Calendar, $unit) |
162 | 162 | { |
163 | - $method = 'this' . $unit; |
|
163 | + $method = 'this'.$unit; |
|
164 | 164 | $stamp = $Calendar->{$method}('timestamp'); |
165 | 165 | |
166 | 166 | return $this->buildUriString($Calendar, $method, $stamp); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | public function next($Calendar, $unit) |
178 | 178 | { |
179 | - $method = 'next' . $unit; |
|
179 | + $method = 'next'.$unit; |
|
180 | 180 | $stamp = $Calendar->{$method}('timestamp'); |
181 | 181 | |
182 | 182 | return $this->buildUriString($Calendar, $method, $stamp); |
@@ -197,10 +197,10 @@ discard block |
||
197 | 197 | $cE = $Calendar->getEngine(); |
198 | 198 | $separator = ''; |
199 | 199 | foreach ($this->uris as $unit => $uri) { |
200 | - $call = 'stampTo' . $unit; |
|
200 | + $call = 'stampTo'.$unit; |
|
201 | 201 | $uriString .= $separator; |
202 | 202 | if (!$this->scalar) { |
203 | - $uriString .= $uri . '='; |
|
203 | + $uriString .= $uri.'='; |
|
204 | 204 | } |
205 | 205 | $uriString .= $cE->{$call}($stamp); |
206 | 206 | $separator = $this->separator; |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | define( |
110 | 110 | '_EXTCAL_NAV_LIST', |
111 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT |
|
111 | + _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT |
|
112 | 112 | ); |
113 | 113 | |
114 | 114 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | define('_EXTCAL_CLN_EVENT', 'Event'); |
42 | 42 | |
43 | 43 | //------------------------------------------------------------------- |
44 | -define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear'); |
|
44 | +define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear'); |
|
45 | 45 | //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' ); |
46 | 46 | |
47 | 47 | $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT; |
@@ -76,22 +76,22 @@ discard block |
||
76 | 76 | //} |
77 | 77 | define('_EXTCAL_PEAR_ROOT', $pear_path); |
78 | 78 | |
79 | -define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar'); |
|
80 | -define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/'); |
|
79 | +define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar'); |
|
80 | +define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/'); |
|
81 | 81 | |
82 | 82 | //------------------------------------------------------------------- |
83 | 83 | define('_EXTCAL_SHOW_NO_PICTURE', false); |
84 | 84 | |
85 | 85 | define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/'); |
86 | -define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'); |
|
87 | -define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/'); |
|
88 | -define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/'); |
|
89 | -define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/'); |
|
90 | -define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/'); |
|
86 | +define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/'); |
|
87 | +define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/'); |
|
88 | +define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/'); |
|
89 | +define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/'); |
|
90 | +define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/'); |
|
91 | 91 | |
92 | 92 | define('_EXTCAL_IMG_INTERVAL', 'interval04.png'); |
93 | -define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL); |
|
94 | -define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL); |
|
93 | +define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL); |
|
94 | +define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL); |
|
95 | 95 | |
96 | 96 | //define('_EXTCAL_DIRNAME', $xoopsModule->getVar('dirname')); |
97 | 97 | |
@@ -108,22 +108,22 @@ discard block |
||
108 | 108 | |
109 | 109 | define( |
110 | 110 | '_EXTCAL_NAV_LIST', |
111 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT |
|
111 | + _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n"._EXTCAL_NAV_AGENDA_DAY."\n"._EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT |
|
112 | 112 | ); |
113 | 113 | |
114 | 114 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
115 | 115 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
116 | 116 | |
117 | -define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW); |
|
118 | -define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW); |
|
119 | -define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW); |
|
120 | -define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW); |
|
121 | -define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
122 | -define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW); |
|
123 | -define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
124 | -define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW); |
|
125 | -define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW); |
|
126 | -define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW); |
|
117 | +define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW); |
|
118 | +define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW); |
|
119 | +define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW); |
|
120 | +define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW); |
|
121 | +define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW); |
|
122 | +define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW); |
|
123 | +define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW); |
|
124 | +define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW); |
|
125 | +define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW); |
|
126 | +define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW); |
|
127 | 127 | |
128 | 128 | define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php'); |
129 | 129 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Load Calendar base class. |
51 | 51 | */ |
52 | -require_once CALENDAR_ROOT . 'Calendar.php'; |
|
52 | +require_once CALENDAR_ROOT.'Calendar.php'; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Represents an Hour and builds Minutes |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function build($sDates = []) |
96 | 96 | { |
97 | - require_once CALENDAR_ROOT . 'Minute.php'; |
|
97 | + require_once CALENDAR_ROOT.'Minute.php'; |
|
98 | 98 | $mIH = $this->cE->getMinutesInHour($this->year, $this->month, $this->day, $this->hour); |
99 | 99 | for ($i = 0; $i < $mIH; ++$i) { |
100 | 100 | $this->children[$i] = new Calendar_Minute($this->year, $this->month, $this->day, $this->hour, $i); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if ($this->year == $sDate->thisYear() && $this->month == $sDate->thisMonth() |
119 | 119 | && $this->day == $sDate->thisDay() |
120 | 120 | && $this->hour == $sDate->thisHour()) { |
121 | - $key = (int)$sDate->thisMinute(); |
|
121 | + $key = (int) $sDate->thisMinute(); |
|
122 | 122 | if (isset($this->children[$key])) { |
123 | 123 | $sDate->setSelected(); |
124 | 124 | $this->children[$key] = $sDate; |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function __construct(&$calendar) |
92 | 92 | { |
93 | - $this->calendar =& $calendar; |
|
94 | - $this->cE =& $calendar->getEngine(); |
|
93 | + $this->calendar = & $calendar; |
|
94 | + $this->cE = & $calendar->getEngine(); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | 'isValidMinute', |
110 | 110 | 'isValidSecond', |
111 | 111 | ]; |
112 | - $valid = true; |
|
112 | + $valid = true; |
|
113 | 113 | foreach ($checks as $check) { |
114 | 114 | if (!$this->{$check}()) { |
115 | 115 | $valid = false; |
@@ -129,13 +129,13 @@ discard block |
||
129 | 129 | $y = $this->calendar->thisYear(); |
130 | 130 | $min = $this->cE->getMinYears(); |
131 | 131 | if ($min > $y) { |
132 | - $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOSMALL . $min); |
|
132 | + $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOSMALL.$min); |
|
133 | 133 | |
134 | 134 | return false; |
135 | 135 | } |
136 | 136 | $max = $this->cE->getMaxYears(); |
137 | 137 | if ($y > $max) { |
138 | - $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOLARGE . $max); |
|
138 | + $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOLARGE.$max); |
|
139 | 139 | |
140 | 140 | return false; |
141 | 141 | } |
@@ -153,13 +153,13 @@ discard block |
||
153 | 153 | $m = $this->calendar->thisMonth(); |
154 | 154 | $min = 1; |
155 | 155 | if ($min > $m) { |
156 | - $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOSMALL . $min); |
|
156 | + $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOSMALL.$min); |
|
157 | 157 | |
158 | 158 | return false; |
159 | 159 | } |
160 | 160 | $max = $this->cE->getMonthsInYear($this->calendar->thisYear()); |
161 | 161 | if ($m > $max) { |
162 | - $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOLARGE . $max); |
|
162 | + $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOLARGE.$max); |
|
163 | 163 | |
164 | 164 | return false; |
165 | 165 | } |
@@ -177,13 +177,13 @@ discard block |
||
177 | 177 | $d = $this->calendar->thisDay(); |
178 | 178 | $min = 1; |
179 | 179 | if ($min > $d) { |
180 | - $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOSMALL . $min); |
|
180 | + $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOSMALL.$min); |
|
181 | 181 | |
182 | 182 | return false; |
183 | 183 | } |
184 | 184 | $max = $this->cE->getDaysInMonth($this->calendar->thisYear(), $this->calendar->thisMonth()); |
185 | 185 | if ($d > $max) { |
186 | - $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOLARGE . $max); |
|
186 | + $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOLARGE.$max); |
|
187 | 187 | |
188 | 188 | return false; |
189 | 189 | } |
@@ -201,13 +201,13 @@ discard block |
||
201 | 201 | $h = $this->calendar->thisHour(); |
202 | 202 | $min = 0; |
203 | 203 | if ($min > $h) { |
204 | - $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOSMALL . $min); |
|
204 | + $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOSMALL.$min); |
|
205 | 205 | |
206 | 206 | return false; |
207 | 207 | } |
208 | 208 | $max = ($this->cE->getHoursInDay($this->calendar->thisDay()) - 1); |
209 | 209 | if ($h > $max) { |
210 | - $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOLARGE . $max); |
|
210 | + $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOLARGE.$max); |
|
211 | 211 | |
212 | 212 | return false; |
213 | 213 | } |
@@ -225,13 +225,13 @@ discard block |
||
225 | 225 | $i = $this->calendar->thisMinute(); |
226 | 226 | $min = 0; |
227 | 227 | if ($min > $i) { |
228 | - $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOSMALL . $min); |
|
228 | + $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOSMALL.$min); |
|
229 | 229 | |
230 | 230 | return false; |
231 | 231 | } |
232 | 232 | $max = ($this->cE->getMinutesInHour($this->calendar->thisHour()) - 1); |
233 | 233 | if ($i > $max) { |
234 | - $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOLARGE . $max); |
|
234 | + $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOLARGE.$max); |
|
235 | 235 | |
236 | 236 | return false; |
237 | 237 | } |
@@ -249,13 +249,13 @@ discard block |
||
249 | 249 | $s = $this->calendar->thisSecond(); |
250 | 250 | $min = 0; |
251 | 251 | if ($min > $s) { |
252 | - $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOSMALL . $min); |
|
252 | + $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOSMALL.$min); |
|
253 | 253 | |
254 | 254 | return false; |
255 | 255 | } |
256 | 256 | $max = ($this->cE->getSecondsInMinute($this->calendar->thisMinute()) - 1); |
257 | 257 | if ($s > $max) { |
258 | - $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOLARGE . $max); |
|
258 | + $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOLARGE.$max); |
|
259 | 259 | |
260 | 260 | return false; |
261 | 261 | } |
@@ -367,6 +367,6 @@ discard block |
||
367 | 367 | */ |
368 | 368 | public function toString() |
369 | 369 | { |
370 | - return $this->unit . ' = ' . $this->value . ' [' . $this->message . ']'; |
|
370 | + return $this->unit.' = '.$this->value.' ['.$this->message.']'; |
|
371 | 371 | } |
372 | 372 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Load Calendar base class. |
51 | 51 | */ |
52 | -require_once CALENDAR_ROOT . 'Calendar.php'; |
|
52 | +require_once CALENDAR_ROOT.'Calendar.php'; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Represents a Day and builds Hours. |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function build($sDates = []) |
115 | 115 | { |
116 | - require_once CALENDAR_ROOT . 'Hour.php'; |
|
116 | + require_once CALENDAR_ROOT.'Hour.php'; |
|
117 | 117 | |
118 | 118 | $hID = $this->cE->getHoursInDay($this->year, $this->month, $this->day); |
119 | 119 | for ($i = 0; $i < $hID; ++$i) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | foreach ($sDates as $sDate) { |
138 | 138 | if ($this->year == $sDate->thisYear() && $this->month == $sDate->thisMonth() |
139 | 139 | && $this->day == $sDate->thisDay()) { |
140 | - $key = (int)$sDate->thisHour(); |
|
140 | + $key = (int) $sDate->thisHour(); |
|
141 | 141 | if (isset($this->children[$key])) { |
142 | 142 | $sDate->setSelected(); |
143 | 143 | $this->children[$key] = $sDate; |
@@ -50,12 +50,12 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Load Calendar base class. |
52 | 52 | */ |
53 | -require_once CALENDAR_ROOT . 'Calendar.php'; |
|
53 | +require_once CALENDAR_ROOT.'Calendar.php'; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Load base month. |
57 | 57 | */ |
58 | -require_once CALENDAR_ROOT . 'Month.php'; |
|
58 | +require_once CALENDAR_ROOT.'Month.php'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Represents a Month and builds Weeks |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function build($sDates = []) |
118 | 118 | { |
119 | - require_once CALENDAR_ROOT . 'Table/Helper.php'; |
|
119 | + require_once CALENDAR_ROOT.'Table/Helper.php'; |
|
120 | 120 | $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay); |
121 | - require_once CALENDAR_ROOT . 'Week.php'; |
|
121 | + require_once CALENDAR_ROOT.'Week.php'; |
|
122 | 122 | $numWeeks = $this->tableHelper->getNumWeeks(); |
123 | 123 | for ($i = 1, $d = 1; $i <= $numWeeks; ++$i, $d += $this->cE->getDaysInWeek($this->thisYear(), $this->thisMonth(), $this->thisDay())) { |
124 | 124 | $this->children[$i] = new Calendar_Week($this->year, $this->month, $d, $this->tableHelper->getFirstDay()); |
@@ -49,12 +49,12 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Load Calendar base class. |
51 | 51 | */ |
52 | -require_once CALENDAR_ROOT . 'Calendar.php'; |
|
52 | +require_once CALENDAR_ROOT.'Calendar.php'; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Load base month. |
56 | 56 | */ |
57 | -require_once CALENDAR_ROOT . 'Month.php'; |
|
57 | +require_once CALENDAR_ROOT.'Month.php'; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Represents a Month and builds Days in tabular form<br> |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function build($sDates = []) |
131 | 131 | { |
132 | - require_once CALENDAR_ROOT . 'Table/Helper.php'; |
|
132 | + require_once CALENDAR_ROOT.'Table/Helper.php'; |
|
133 | 133 | $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay); |
134 | 134 | Calendar_Month::build($sDates); |
135 | 135 | $this->buildEmptyDaysBefore(); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Load Calendar base class. |
52 | 52 | */ |
53 | -require_once CALENDAR_ROOT . 'Calendar.php'; |
|
53 | +require_once CALENDAR_ROOT.'Calendar.php'; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Represents a Week and builds Days in tabular format<br> |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | public function __construct($y, $m, $d, $firstDay = null) |
140 | 140 | { |
141 | - require_once CALENDAR_ROOT . 'Table/Helper.php'; |
|
141 | + require_once CALENDAR_ROOT.'Table/Helper.php'; |
|
142 | 142 | parent::__construct($y, $m, $d); |
143 | 143 | $this->firstDay = $this->defineFirstDayOfWeek($firstDay); |
144 | 144 | $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay); |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | public function build($sDates = []) |
172 | 172 | { |
173 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
173 | + require_once CALENDAR_ROOT.'Day.php'; |
|
174 | 174 | $year = $this->cE->stampToYear($this->thisWeek); |
175 | 175 | $month = $this->cE->stampToMonth($this->thisWeek); |
176 | 176 | $day = $this->cE->stampToDay($this->thisWeek); |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | case 'array': |
295 | 295 | return $this->toArray($this->prevWeek); |
296 | 296 | case 'object': |
297 | - require_once CALENDAR_ROOT . 'Factory.php'; |
|
297 | + require_once CALENDAR_ROOT.'Factory.php'; |
|
298 | 298 | |
299 | 299 | return Calendar_Factory::createByTimestamp('Week', $this->prevWeek); |
300 | 300 | case 'timestamp': |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | case 'array': |
329 | 329 | return $this->toArray($this->thisWeek); |
330 | 330 | case 'object': |
331 | - require_once CALENDAR_ROOT . 'Factory.php'; |
|
331 | + require_once CALENDAR_ROOT.'Factory.php'; |
|
332 | 332 | |
333 | 333 | return Calendar_Factory::createByTimestamp('Week', $this->thisWeek); |
334 | 334 | case 'timestamp': |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | case 'array': |
356 | 356 | return $this->toArray($this->nextWeek); |
357 | 357 | case 'object': |
358 | - require_once CALENDAR_ROOT . 'Factory.php'; |
|
358 | + require_once CALENDAR_ROOT.'Factory.php'; |
|
359 | 359 | |
360 | 360 | return Calendar_Factory::createByTimestamp('Week', $this->nextWeek); |
361 | 361 | case 'timestamp': |