本文整理汇总了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;
}
示例2: getTemplateVars
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$ret['headline1'] = $this->_getRow()->headline1;
$ret['headline2'] = $this->_getRow()->headline2;
return $ret;
}
示例3: getTemplateVars
public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
{
$ret = parent::getTemplateVars($renderer);
$page = $this->getData()->getPage();
$ret['childPages'] = $page->getChildPages();
return $ret;
}
示例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;
}
示例5: getTemplateVars
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$page = $this->getData()->getPage();
$ret['childPages'] = $page->getChildPages();
return $ret;
}
示例6: getTemplateVars
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$ret['workingPosition'] = $this->_getRow()->working_position;
$ret['vcard'] = $this->getData()->getChildComponent('_vcard');
return $ret;
}
示例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;
}
示例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;
}
示例9: getTemplateVars
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$ret['imageUrl'] = $this->getImageUrl();
$ret['imagePage'] = $this->getData()->getChildComponent('_imagePage');
return $ret;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}