| @@ 943-954 (lines=12) @@ | ||
| 940 | return !$this->isClosed(); |
|
| 941 | } |
|
| 942 | ||
| 943 | public function isStarted() |
|
| 944 | { |
|
| 945 | $today = new DateTime('now'); |
|
| 946 | if (((!$this->getStartDate() || $this->getStartDate() <= $today)) |
|
| 947 | && |
|
| 948 | (!$this->getEndDate() || $this->getEndDate() > $today) |
|
| 949 | ) { |
|
| 950 | return true; |
|
| 951 | } |
|
| 952 | ||
| 953 | return false; |
|
| 954 | } |
|
| 955 | ||
| 956 | public function isFinished() |
|
| 957 | { |
|
| @@ 956-967 (lines=12) @@ | ||
| 953 | return false; |
|
| 954 | } |
|
| 955 | ||
| 956 | public function isFinished() |
|
| 957 | { |
|
| 958 | $today = new DateTime('now'); |
|
| 959 | if ($this->getEndDate() && $this->getEndDate() <= $today |
|
| 960 | || |
|
| 961 | ($this->getCloseDate() && $this->getCloseDate() <= $today) |
|
| 962 | ) { |
|
| 963 | return true; |
|
| 964 | } |
|
| 965 | ||
| 966 | return false; |
|
| 967 | } |
|
| 968 | ||
| 969 | public function isOnline() |
|
| 970 | { |
|