@@ 534-543 (lines=10) @@ | ||
531 | * |
|
532 | * @return bool |
|
533 | */ |
|
534 | public function getIsPublishScheduled() |
|
535 | { |
|
536 | if (!$this->owner->PublishOnDate) { |
|
537 | return false; |
|
538 | } |
|
539 | $now = DBDatetime::now()->getTimestamp(); |
|
540 | $publish = $this->owner->dbObject('PublishOnDate')->getTimestamp(); |
|
541 | ||
542 | return $now < $publish; |
|
543 | } |
|
544 | ||
545 | /** |
|
546 | * Returns whether an unpublishing date has been set and is after the current date |
|
@@ 550-559 (lines=10) @@ | ||
547 | * |
|
548 | * @return bool |
|
549 | */ |
|
550 | public function getIsUnPublishScheduled() |
|
551 | { |
|
552 | if (!$this->owner->UnPublishOnDate) { |
|
553 | return false; |
|
554 | } |
|
555 | $now = DBDatetime::now()->getTimestamp(); |
|
556 | $unpublish = $this->owner->dbObject('UnPublishOnDate')->getTimestamp(); |
|
557 | ||
558 | return $now < $unpublish; |
|
559 | } |
|
560 | ||
561 | /** |
|
562 | * Add edit check for when publishing has been scheduled and if any workflow definitions want the item to be |