/** * Factory method to create a CMS content controller. * This is defined here to provide a PHPDoc hint on the return type. * * @param string $package * @param string $class * @param string $contentid * @return vBCms_Content */ public static function create($package, $class, $contentid = false) { return parent::create($package, $class, $contentid); }
/** * Gets the full controller class name for a contenttype. * * @param $contenttypeid - An identifier for the contenttypeid * @param $contentid - An optional contentid * * @return string */ public function getContentTypeController($contenttypeid, $contentid = false) { if (!($id = $this->getContentTypeID($contenttypeid))) { throw (new vB_Exception_Warning('Trying to get contenttype controller class from invalid contenttype \'' . htmlspecialchars(print_r($contenttypeid, 1)) . '\'')); } return vB_Content::create($this->getContentTypePackage($id), $this->getContentTypeClass($id), $contentid); }