_groupTitle = (string)$groupTitle; return $this; } public function getGroupTitle() { return $this->_groupTitle; } public function getData() { $itemObj = App_Cms_Obj::getInstance()->getItemObject($this->getOption('type')); $itemObj->setLanguage(Qs_Constant::get('CURRENT_LANGUAGE')) ->setPrimaryKey($this->getOption('number')) ->initData(); $data = $itemObj->getData(); if (!isset($data['content'])) { $itemObj->setLanguage(Qs_Constant::get('DEFAULT_LANGUAGE')) ->setPrimaryKey($this->getOption('number')) ->clearData() ->initData(); $data = $itemObj->getData(); } return $data; } public function exec() { $data = $this->getData(); if (!isset($data['content'])) { return false; } $data['tpl'] = $this->getTemplate('view.tpl'); $this->_addItem($data); return $this; } }