@@ 953-964 (lines=12) @@ | ||
950 | return !$this->isClosed(); |
|
951 | } |
|
952 | ||
953 | public function isStarted() |
|
954 | { |
|
955 | $today = new DateTime('now'); |
|
956 | if (((!$this->getStartDate() || $this->getStartDate() <= $today)) |
|
957 | && (!$this->getEndDate() || $this->getEndDate() > $today) |
|
958 | ) { |
|
959 | return true; |
|
960 | } |
|
961 | ||
962 | return false; |
|
963 | } |
|
964 | ||
965 | public function isFinished() |
|
966 | { |
|
967 | $today = new DateTime('now'); |
|
@@ 965-976 (lines=12) @@ | ||
962 | return false; |
|
963 | } |
|
964 | ||
965 | public function isFinished() |
|
966 | { |
|
967 | $today = new DateTime('now'); |
|
968 | if ($this->getEndDate() && $this->getEndDate() <= $today |
|
969 | || |
|
970 | ($this->getCloseDate() && $this->getCloseDate() <= $today) |
|
971 | ) { |
|
972 | return true; |
|
973 | } |
|
974 | ||
975 | return false; |
|
976 | } |
|
977 | ||
978 | public function isOnline() |
|
979 | { |