| @@ 866-877 (lines=12) @@ | ||
| 863 | return !$this->isClosed(); |
|
| 864 | } |
|
| 865 | ||
| 866 | public function isStarted() |
|
| 867 | { |
|
| 868 | $today = new DateTime('now'); |
|
| 869 | if (((!$this->getStartDate() || $this->getStartDate() <= $today)) |
|
| 870 | && |
|
| 871 | (!$this->getEndDate() || $this->getEndDate() > $today) |
|
| 872 | ) { |
|
| 873 | return true; |
|
| 874 | } |
|
| 875 | ||
| 876 | return false; |
|
| 877 | } |
|
| 878 | ||
| 879 | public function isFinished() |
|
| 880 | { |
|
| @@ 879-890 (lines=12) @@ | ||
| 876 | return false; |
|
| 877 | } |
|
| 878 | ||
| 879 | public function isFinished() |
|
| 880 | { |
|
| 881 | $today = new DateTime('now'); |
|
| 882 | if ($this->getEndDate() && $this->getEndDate() <= $today |
|
| 883 | || |
|
| 884 | ($this->getCloseDate() && $this->getCloseDate() <= $today) |
|
| 885 | ) { |
|
| 886 | return true; |
|
| 887 | } |
|
| 888 | ||
| 889 | return false; |
|
| 890 | } |
|
| 891 | ||
| 892 | public function isOnline() |
|
| 893 | { |
|