public function getPublishedStatus()
    {
        $today = date('Y-m-d');

        if (empty($this->published_date)) {
            return 'draft';
        } elseif ($this->published_date > $today) {
            return 'pending';
        } elseif ($this->published_date <= $today) {
            return 'published';
        }

        return null;
    }
public function getPublishedStatus()
    {
        $today = date('Y-m-d');

        if (empty($this->published_date)) {
            return 'draft';
        } elseif ($this->published_date > $today) {
            return 'pending';
        } elseif ($this->published_date <= $today) {
            return 'published';
        }

        return null;
    }
public function getPublishedStatus ( ) { $ today = date ( 'Y-m-d' ) ; if ( empty ( $ this -> published_date ) ) { return 'draft' ; } elseif ( $ this -> published_date > $ today ) { return 'pending' ; } elseif ( $ this -> published_date <= $ today ) { return 'published' ; } return null ; }
Get Published Status

@param void
@return string
Get Published Status