Exemple #1
0
 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();
 }
Exemple #2
0
 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();
 }