| @@ 419-429 (lines=11) @@ | ||
| 416 | ||
| 417 | ||
| 418 | ||
| 419 | public function getYear() |
|
| 420 | { |
|
| 421 | $year = (int) substr($this->date_begin, 0, 4); |
|
| 422 | ||
| 423 | if (0 === $year) |
|
| 424 | { |
|
| 425 | return null; |
|
| 426 | } |
|
| 427 | ||
| 428 | return $year; |
|
| 429 | } |
|
| 430 | ||
| 431 | ||
| 432 | public function getArchiveYear() |
|
| @@ 1809-1819 (lines=11) @@ | ||
| 1806 | } |
|
| 1807 | ||
| 1808 | ||
| 1809 | public function getYear() |
|
| 1810 | { |
|
| 1811 | $year = (int) substr($this->date_begin, 0, 4); |
|
| 1812 | ||
| 1813 | if (0 === $year) |
|
| 1814 | { |
|
| 1815 | return null; |
|
| 1816 | } |
|
| 1817 | ||
| 1818 | return $year; |
|
| 1819 | } |
|
| 1820 | ||
| 1821 | ||
| 1822 | public function getArchiveYear() |
|
| @@ 403-413 (lines=11) @@ | ||
| 400 | * Start date year |
|
| 401 | * @return int |
|
| 402 | */ |
|
| 403 | public function getYear() |
|
| 404 | { |
|
| 405 | $year = (int) substr($this->date_begin, 0, 4); |
|
| 406 | ||
| 407 | if (0 === $year) |
|
| 408 | { |
|
| 409 | return null; |
|
| 410 | } |
|
| 411 | ||
| 412 | return $year; |
|
| 413 | } |
|
| 414 | ||
| 415 | ||
| 416 | /** |
|