src/BoomCMS/Database/Models/PageVersion.php
public function status(DateTime $time = null)
    {
        if ($this->isPendingApproval()) {
            return 'pending approval';
        } elseif ($this->isDraft()) {
            return 'draft';
        } elseif ($this->isPublished($time)) {
            return 'published';
        } elseif ($this->isEmbargoed($time)) {
            return 'embargoed';
        }
    }
public function status(DateTime $time = null)
    {
        if ($this->isPendingApproval()) {
            return 'pending approval';
        } elseif ($this->isDraft()) {
            return 'draft';
        } elseif ($this->isPublished($time)) {
            return 'published';
        } elseif ($this->isEmbargoed($time)) {
            return 'embargoed';
        }
    }
public function status ( DateTime $ time = null ) { if ( $ this -> isPendingApproval ( ) ) { return 'pending approval' ; } elseif ( $ this -> isDraft ( ) ) { return 'draft' ; } elseif ( $ this -> isPublished ( $ time ) ) { return 'published' ; } elseif ( $ this -> isEmbargoed ( $ time ) ) { return 'embargoed' ; } }
Returns the status of the current page version.

If a time parameter is given then the status of the page at that time will be returned.

@param null|DateTime $time

@return string
Returns the status of the current page version .