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