当前位置: 首页>>代码示例>>PHP>>正文


PHP Kwc_Chained_Trl_Component::getTemplateVars方法代码示例

本文整理汇总了PHP中Kwc_Chained_Trl_Component::getTemplateVars方法的典型用法代码示例。如果您正苦于以下问题:PHP Kwc_Chained_Trl_Component::getTemplateVars方法的具体用法?PHP Kwc_Chained_Trl_Component::getTemplateVars怎么用?PHP Kwc_Chained_Trl_Component::getTemplateVars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Kwc_Chained_Trl_Component的用法示例。


在下文中一共展示了Kwc_Chained_Trl_Component::getTemplateVars方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $children = $this->getData()->getChildComponents($this->getData()->chained->getComponent()->getSelect());
     // children ist die alte methode, bleibt drin wegen kompatibilität
     $ret['children'] = $children;
     // das hier ist die neue variante und ist besser, weil man leichter mehr daten
     // zurückgeben kann, bzw. in der übersetzung überschreiben kann
     // zB: Breite bei übersetzung von Columns
     $ret['listItems'] = array();
     $i = 0;
     foreach ($children as $child) {
         $class = 'listItem ';
         if ($i == 0) {
             $class .= 'kwcFirst ';
         }
         if ($i == count($children) - 1) {
             $class .= 'kwcLast ';
         }
         if ($i % 2 == 0) {
             $class .= 'kwcEven ';
         } else {
             $class .= 'kwcOdd ';
         }
         $class = trim($class);
         $i++;
         $ret['listItems'][] = array('data' => $this->getData()->chained->getComponent()->getItemComponent($child), 'class' => $class, 'style' => '');
     }
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:30,代码来源:Component.php

示例2: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['headline1'] = $this->_getRow()->headline1;
     $ret['headline2'] = $this->_getRow()->headline2;
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例3: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $page = $this->getData()->getPage();
     $ret['childPages'] = $page->getChildPages();
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例4: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['workingPosition'] = $this->_getRow()->working_position;
     $ret['vcard'] = $this->getData()->getChildComponent('_vcard');
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例5: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $page = $this->getData()->getPage();
     $ret['childPages'] = $page->getChildPages();
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例6: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['workingPosition'] = $this->_getRow()->working_position;
     $ret['vcard'] = $this->getData()->getChildComponent('_vcard');
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例7: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['headline1'] = $this->_getRow()->headline1;
     $ret['headline2'] = $this->_getRow()->headline2;
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例8: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['paypalButton'] = $this->_getPaypalButton();
     $ret['options'] = array('controllerUrl' => Kwc_Admin::getInstance($this->getData()->componentClass)->getControllerUrl() . '/json-confirm-order', 'params' => array('paymentComponentId' => $this->getData()->parent->componentId));
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例9: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['imageUrl'] = $this->getImageUrl();
     $ret['imagePage'] = $this->getData()->getChildComponent('_imagePage');
     return $ret;
 }
开发者ID:nsams,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例10: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['imageUrl'] = $this->getImageUrl();
     $ret['imagePage'] = $this->getData()->getChildComponent('_imagePage');
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:7,代码来源:Component.php

示例11: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['link1'] = Kwc_Chained_Trl_Component::getChainedByMaster($ret['link1'], $this->getData());
     $ret['link4'] = Kwc_Chained_Trl_Component::getChainedByMaster($ret['link4'], $this->getData());
     $ret['link5'] = Kwc_Chained_Trl_Component::getChainedByMaster($ret['link5'], $this->getData());
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:8,代码来源:Component.php

示例12: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['link1'] = Kwc_Chained_Trl_Component::getChainedByMaster($ret['link1'], $this->getData());
     $ret['link4'] = Kwc_Chained_Trl_Component::getChainedByMaster($ret['link4'], $this->getData());
     $ret['link5'] = Kwc_Chained_Trl_Component::getChainedByMaster($ret['link5'], $this->getData());
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:8,代码来源:Component.php

示例13: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     if ($this->getRow()->own_url) {
         $ret['url'] = Kwc_Advanced_CommunityVideo_Component::getVideoUrl($this->getRow()->url, $ret['row']);
     }
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:8,代码来源:Component.php

示例14: getTemplateVars

 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     if ($this->getRow()->own_flash) {
         $tvars = $this->getData()->getChildComponent('-flash')->getComponent()->getTemplateVars();
         $ret['flash'] = $tvars['flash'];
     }
     return $ret;
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:9,代码来源:Component.php

示例15: getTemplateVars

 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $c = $this->getData()->parent->chained->componentClass;
     if (!is_instance_of($c, 'Kwc_Shop_Cart_Checkout_Payment_None_Component')) {
         $ret['paymentTypeText'] = $this->getData()->trlStaticExecute(Kwc_Abstract::getSetting($c, 'componentName'));
     }
     return $ret;
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:9,代码来源:Component.php


注:本文中的Kwc_Chained_Trl_Component::getTemplateVars方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。