@@ 404-416 (lines=13) @@ | ||
401 | * @param \DateTime $date |
|
402 | * @return bool |
|
403 | */ |
|
404 | public function dateIsLater(\DateTime $date) { |
|
405 | $dateLater = FALSE; |
|
406 | ||
407 | $t2 = $this->end_date->getTimeStamp(); |
|
408 | ||
409 | $t4 = $date->getTimestamp(); |
|
410 | ||
411 | if ($t2 < $t4) { |
|
412 | $dateLater = TRUE; |
|
413 | } |
|
414 | ||
415 | return $dateLater; |
|
416 | } |
|
417 | ||
418 | /** |
|
419 | * Checks if our event ends after the date supplied |
|
@@ 423-435 (lines=13) @@ | ||
420 | * @param \DateTime $date |
|
421 | * @return bool |
|
422 | */ |
|
423 | public function endsLater(\DateTime $date) { |
|
424 | $later = FALSE; |
|
425 | ||
426 | $t2 = $this->end_date->getTimeStamp(); |
|
427 | ||
428 | $t4 = $date->getTimestamp(); |
|
429 | ||
430 | if ($t2 > $t4) { |
|
431 | $later = TRUE; |
|
432 | } |
|
433 | ||
434 | return $later; |
|
435 | } |
|
436 | ||
437 | /** |
|
438 | * Checks if our event starts earlier than the date supplied |