示例#1
0
 function __construct($parameter)
 {
     $this->tm = TemplateManager::getInstance();
     if (isset($parameter['page']) && is_numeric($parameter['page'])) {
         $this->page = $parameter['page'];
     }
 }
示例#2
0
 function __construct($paramaters)
 {
     if (isset($paramaters['webcode'])) {
         $this->webcode = $paramaters['webcode'];
     }
     $this->tm = TemplateManager::getInstance();
 }
示例#3
0
 function __construct($parameters)
 {
     if (!empty($parameters)) {
         $this->{$parameters}[0] = true;
     }
     $this->tm = TemplateManager::getInstance();
 }
示例#4
0
 function __construct($paramaters)
 {
     foreach ($paramaters as $key => $value) {
         $this->{$key} = $value;
     }
     $this->tm = TemplateManager::getInstance();
     $this->em = GeocacheManager::getInstance();
 }
 /**
  * 
  * @param type $componentName
  * @return \template_manager\classes\TComponentShortcutWrapper
  */
 public function __get($componentName)
 {
     //        $currentTemplate = TemplateManager::getInstance()->getCurentTemplate();
     //        $components = $currentTemplate->getComponents();
     $components = TemplateManager::getInstance()->getCurrentTemplateComponents();
     $nameShort = self::getShortName($componentName);
     foreach ($components as $componentName_ => $component_) {
         $nameShort_ = self::getShortName($componentName_);
         if ($componentName_ == $componentName || $nameShort_ == $nameShort) {
             return $component_;
         }
     }
 }
示例#6
0
 function __construct($parameters)
 {
     $this->error_id = $parameters['id'];
     $this->tm = TemplateManager::getInstance();
 }
示例#7
0
 function __construct($paramaters)
 {
     $this->tm = TemplateManager::getInstance();
 }