public function componentToString(Kwf_Component_Data $data)
 {
     $r = $data->getComponent()->getRow();
     if ($r->own_download) {
         $r = $data->getChildComponent('-download')->getComponent()->getRow();
     } else {
         $r = $data->chained->getComponent()->getRow();
     }
     if (!empty($r->filename)) {
         return $r->filename;
     }
     return '';
 }
 public function componentToString(Kwf_Component_Data $data)
 {
     $child = $data->getChildComponent(array('generator' => 'child'));
     return Kwc_Admin::getInstance($child->componentClass)->componentToString($child);
 }
 public function componentToString(Kwf_Component_Data $data)
 {
     return $data->getChildComponent('-linktext')->getComponent()->getRow()->content;
 }
Beispiel #4
0
 public static function modifyItemData(Kwf_Component_Data $item)
 {
     $item->previewImage = $item->getChildComponent('-image');
     $item->previewText = $item->getChildComponent('-text');
     $item->currentPrice = $item->row->current_price;
 }
 public function componentToString(Kwf_Component_Data $data)
 {
     $admin = Kwc_Admin::getInstance($data->chained->componentClass);
     return $admin->componentToString($data->getChildComponent('-child'));
 }