@@ 21-29 (lines=9) @@ | ||
18 | $this->viewTitle = 'return \'Week Of \' . date(\'l jS F Y\', $date);'; |
|
19 | } |
|
20 | ||
21 | public function prevLinkParams(Calendar $calendar) |
|
22 | { |
|
23 | $date = $this->getWeekStartDay($calendar->getDay(), $calendar->getMonth(), $calendar->getYear()); |
|
24 | $dayValue = date('j', $date) - ($this->number * 7); |
|
25 | $monthValue = date('n', $date); |
|
26 | $yearValue = date('Y', $date); |
|
27 | $date = mktime(0, 0, 0, $monthValue, $dayValue, $yearValue); |
|
28 | return $this->getLinkParams($date); |
|
29 | } |
|
30 | ||
31 | public function nextLinkParams(Calendar $calendar) |
|
32 | { |
|
@@ 31-39 (lines=9) @@ | ||
28 | return $this->getLinkParams($date); |
|
29 | } |
|
30 | ||
31 | public function nextLinkParams(Calendar $calendar) |
|
32 | { |
|
33 | $date = $this->getWeekStartDay($calendar->getDay(), $calendar->getMonth(), $calendar->getYear()); |
|
34 | $dayValue = date('j', $date) + ($this->number * 7); |
|
35 | $monthValue = date('n', $date); |
|
36 | $yearValue = date('Y', $date); |
|
37 | $date = mktime(0, 0, 0, $monthValue, $dayValue, $yearValue); |
|
38 | return $this->getLinkParams($date); |
|
39 | } |
|
40 | ||
41 | public function title() |
|
42 | { |