src/BoomCMS/Database/Models/PageVersion.php
public function isPublished(DateTime $time = null)
    {
        $timestamp = $time ? $time->getTimestamp() : time();

        return $this->{self::ATTR_EMBARGOED_UNTIL} && $this->{self::ATTR_EMBARGOED_UNTIL} <= $timestamp;
    }
public function isPublished(DateTime $time = null)
    {
        $timestamp = $time ? $time->getTimestamp() : time();

        return $this->{self::ATTR_EMBARGOED_UNTIL} && $this->{self::ATTR_EMBARGOED_UNTIL} <= $timestamp;
    }
public function isPublished ( DateTime $ time = null ) { $ timestamp = $ time ? $ time -> getTimestamp ( ) : time ( ) ; return $ this -> { self :: ATTR_EMBARGOED_UNTIL } && $ this -> { self :: ATTR_EMBARGOED_UNTIL } <= $ timestamp ; }
Whether the version is published.

If a time is given then the embargo time is compared with the given time.

Otherwise it is compared with the current time.

@param null|DateTime $time

@return bool
Whether the version is published .