public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = parent::getTemplateVars($renderer); $ret['write'] = $this->getData()->getChildComponent('_write'); $ret['quickwrite'] = $this->getData()->getChildComponent('-quickwrite'); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['generators']['child']['component']['view'] = 'Kwf_Component_Cache_Paging_Directory_View_Component'; $ret['childModel'] = 'Kwf_Component_Cache_Paging_Directory_Model'; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['generators']['detail']['class'] = 'Kwf_Component_Generator_Page_Table'; $ret['generators']['child']['component']['view'] = 'Kwc_Directories_List_ViewPage_Component'; return $ret; }
public function getTemplateVars() { $ret = parent::getTemplateVars(); $ret['write'] = $this->getData()->getChildComponent('_write'); $ret['quickwrite'] = $this->getData()->getChildComponent('-quickwrite'); return $ret; }
public static function getSettings($param = null) { $ret = parent::getSettings($param); $ret['childModel'] = 'Kwf_Component_Cache_Directory_Root_Directory_Model'; //$ret['generators']['detail']['component'] = 'Kwf_Component_Cache_Directory_Root_Directory_Detail_Component'; $ret['generators']['child']['component']['view'] = 'Kwf_Component_Cache_Directory_Root_Directory_View_Component'; $ret['flags']['chainedType'] = 'Trl'; return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['generators']['detail']['dbIdShortcut'] = 'foo_'; $ret['childModel'] = 'Kwf_Component_Cache_Directory_DbIdShortcut_Model'; $ret['generators']['child']['component']['view'] = 'Kwf_Component_Cache_Directory_DbIdShortcut_View_Component'; $ret['generators']['detail']['class'] = 'Kwf_Component_Cache_Directory_DbIdShortcut_Generator'; $ret['flags']['chainedType'] = 'Trl'; return $ret; }
public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer) { $ret = parent::getTemplateVars($renderer); $ret['countProducts'] = $this->getData()->countChildComponents(array('generator' => 'detail')); $ret['checkout'] = $this->getData()->getChildComponent('_checkout'); $ret['shop'] = $this->getData()->getParentPage(); $ret['order'] = Kwf_Model_Abstract::getInstance($this->_getSetting('childModel'))->getReferencedModel('Order')->getCartOrder(); $ret['subTotal'] = $ret['order']->getSubTotal(); $ret['total'] = $ret['order']->getTotal(); $ret['sumRows'] = $ret['order']->getSumRows(); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['componentName'] = trlKwfStatic('Fulltext Search'); $ret['generators']['detail']['class'] = 'Kwc_FulltextSearch_Search_Directory_Generator'; $ret['generators']['detail']['component'] = 'Kwc_FulltextSearch_Search_Detail_Component'; $ret['generators']['child']['component']['view'] = 'Kwc_FulltextSearch_Search_ViewAjax_Component'; $ret['childModel'] = 'Kwc_FulltextSearch_Search_Directory_Model'; $ret['flags']['usesFulltext'] = true; $ret['updateTags'] = array('fulltext'); $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None'; return $ret; }
public function getTemplateVars() { $ret = parent::getTemplateVars(); $ret['countProducts'] = $this->getData()->countChildComponents(array('generator' => 'detail')); $ret['checkout'] = $this->getData()->getChildComponent('_checkout'); $ret['shop'] = $this->getData()->getParentPage(); $ret['order'] = Kwf_Model_Abstract::getInstance($this->_getSetting('childModel'))->getReferencedModel('Order')->getCartOrder(); $ret['subTotal'] = $ret['order']->getSubTotal(); $ret['total'] = $ret['order']->getTotal(); $ret['sumRows'] = $ret['order']->getSumRows(); foreach ($ret['sumRows'] as $k => $i) { $ret['sumRows'][$k]['text'] = $this->getData()->trlStaticExecute($i['text']); } return $ret; }