protected function __construct() { $platform = RokCommon_Platform::getInstance(); $classname = 'RokGallery_Config_Platform_' . ucfirst($platform->getPlatformId()); if (!class_exists($classname)) { throw new RokCommon_Loader_Exception('Unable to find Config library for Platform ' . $platform->getPlatformId()); } $this->platform_instance = new $classname(); }
public function __construct(array $vars) { parent::__construct($vars); $platform = RokCommon_Platform::getInstance(); $classname = 'RokGallery_Link_Type_Article_Platform_' . ucfirst($platform->getPlatformId()); if (!class_exists($classname)) { throw new RokCommon_Loader_Exception('Unable to find Article Link Type library for Platform ' . $platform->getPlatformId()); } $this->platform_type = new $classname(); $this->populateArticleInfo(); }