/** * Returns whether the content is published. * * @return bool */ public function isPublished() { if ($this->use_item AND $this->content) { return $this->content->isPublished(); } throw (new vB_Exception_Content('Checking if content is published but no content is set in \'' . get_class($this) . '\'')); }