Exemplo n.º 1
0
 /**
  * @static
  * @return RokCommon_Platform
  */
 public static function &getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new RokCommon_Platform();
     }
     return self::$instance;
 }
Exemplo n.º 2
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();
 }
Exemplo n.º 3
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();
 }