@@ -50,12 +50,12 @@ |
||
50 | 50 | /** |
51 | 51 | * Load Calendar decorator base class. |
52 | 52 | */ |
53 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
53 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Load the Uri utility. |
57 | 57 | */ |
58 | -require_once CALENDAR_ROOT . 'Util/Textual.php'; |
|
58 | +require_once CALENDAR_ROOT.'Util/Textual.php'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Decorator to help with fetching textual representations of months and |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Load Calendar decorator base class. |
52 | 52 | */ |
53 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
53 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Decorator to help with wrapping built children in another decorator. |
@@ -50,12 +50,12 @@ |
||
50 | 50 | /** |
51 | 51 | * Load Calendar decorator base class. |
52 | 52 | */ |
53 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
53 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Load the Uri utility. |
57 | 57 | */ |
58 | -require_once CALENDAR_ROOT . 'Util/Uri.php'; |
|
58 | +require_once CALENDAR_ROOT.'Util/Uri.php'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Decorator to help with building HTML links for navigating the calendar<br> |
@@ -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; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../../include/constantes.php'; |
|
3 | +require_once __DIR__.'/../../include/constantes.php'; |
|
4 | 4 | define('_MI_EXTCAL_NAME', 'eXtCal'); |
5 | 5 | define('_MI_EXTCAL_ABOUT', 'About'); |
6 | 6 | define('_MI_EXTCAL_AFTER', 'After'); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | define('_MI_EXTCAL_START_PAGE', 'Module home page'); |
136 | 136 | define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event'); |
137 | 137 | define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs'); |
138 | -define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line'); |
|
138 | +define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line'); |
|
139 | 139 | define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.'); |
140 | 140 | define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab'); |
141 | 141 | define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day'); |
@@ -162,6 +162,6 @@ discard block |
||
162 | 162 | |
163 | 163 | //Help |
164 | 164 | define('_MI_EXTCAL_DIRNAME', basename(dirname(dirname(__DIR__)))); |
165 | -define('_MI_EXTCAL_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
165 | +define('_MI_EXTCAL_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
166 | 166 | define('_MI_EXTCAL_BACK_2_ADMIN', 'Back to Administration of '); |
167 | 167 | define('_MI_EXTCAL_OVERVIEW', 'Overview'); |
@@ -33,22 +33,22 @@ discard block |
||
33 | 33 | |
34 | 34 | //---------------------------------------------------------- |
35 | 35 | // Create eXtCal upload directory |
36 | - $indexFile = __DIR__ . '/index.html'; |
|
36 | + $indexFile = __DIR__.'/index.html'; |
|
37 | 37 | |
38 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal'; |
|
38 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal'; |
|
39 | 39 | if (!is_dir($dir)) { |
40 | 40 | mkdir($dir, 0777); |
41 | - copy($indexFile, $dir . '/index.html'); |
|
41 | + copy($indexFile, $dir.'/index.html'); |
|
42 | 42 | } |
43 | 43 | |
44 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement'; |
|
44 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement'; |
|
45 | 45 | if (!is_dir($dir)) { |
46 | 46 | mkdir($dir, 0777); |
47 | - copy($indexFile, $dir . '/index.html'); |
|
47 | + copy($indexFile, $dir.'/index.html'); |
|
48 | 48 | } |
49 | 49 | //------------------------------------------------------------ |
50 | 50 | |
51 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
51 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
52 | 52 | $cls = 'extcal_%1$s'; |
53 | 53 | |
54 | 54 | $version = [ |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | foreach ($version as $key => $val) { |
68 | 68 | if ($previousVersion < $val) { |
69 | 69 | $name = sprintf($cls, $key); |
70 | - $f = $fld . $name . '.php'; |
|
70 | + $f = $fld.$name.'.php'; |
|
71 | 71 | //ext_echo ("<hr>{$f}<hr>"); |
72 | 72 | if (is_readable($f)) { |
73 | 73 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -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; |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | define('CALENDAR_ROOT', '../../'); |
12 | 12 | } |
13 | 13 | |
14 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
15 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
16 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
14 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
15 | +require_once CALENDAR_ROOT.'Day.php'; |
|
16 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
17 | 17 | |
18 | 18 | // accepts multiple entries |
19 | 19 | |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function build($events = []) |
78 | 78 | { |
79 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
80 | - require_once CALENDAR_ROOT . 'Table/Helper.php'; |
|
79 | + require_once CALENDAR_ROOT.'Day.php'; |
|
80 | + require_once CALENDAR_ROOT.'Table/Helper.php'; |
|
81 | 81 | |
82 | 82 | $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay); |
83 | 83 | $this->cE = $this->getEngine(); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | <h2>Sample Calendar Payload Decorator (using <?php echo CALENDAR_ENGINE; ?> engine)</h2> |
231 | 231 | <table class="calendar" width="98%" cellspacing="0" cellpadding="0"> |
232 | 232 | <caption> |
233 | - <?php echo $MonthDecorator->thisMonth() . ' / ' . $MonthDecorator->thisYear(); ?> |
|
233 | + <?php echo $MonthDecorator->thisMonth().' / '.$MonthDecorator->thisYear(); ?> |
|
234 | 234 | </caption> |
235 | 235 | <tr> |
236 | 236 | <th>Monday</th> |
@@ -254,14 +254,14 @@ discard block |
||
254 | 254 | echo ' calCellEmpty'; |
255 | 255 | } |
256 | 256 | echo '">'; |
257 | - echo '<div class="dayNumber">' . $Day->thisDay() . '</div>'; |
|
257 | + echo '<div class="dayNumber">'.$Day->thisDay().'</div>'; |
|
258 | 258 | |
259 | 259 | if ($Day->isEmpty()) { |
260 | 260 | echo ' '; |
261 | 261 | } else { |
262 | 262 | echo '<div class="dayContents"><ul>'; |
263 | 263 | while ($entry = $Day->getEntry()) { |
264 | - echo '<li>' . $entry['desc'] . '</li>'; |
|
264 | + echo '<li>'.$entry['desc'].'</li>'; |
|
265 | 265 | //you can print the time range as well |
266 | 266 | } |
267 | 267 | echo '</ul></div>'; |