public function load($row)
 {
     $ret = parent::load($row);
     if (!$ret) {
         return $ret;
     }
     $c = Kwf_Component_Data_Root::getInstance()->getComponentByDbId('blog_' . $ret, array('ignoreVisible' => true, 'limit' => 1));
     $ret = array('name' => $c ? $c->name : $ret, 'id' => $ret);
     return $ret;
 }
 public function load($row, array $info = array())
 {
     $content = parent::load($row, $info);
     $c = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($row->component_id, array('ignoreVisible' => true, 'limit' => 1));
     if ($c) {
         $content = Kwf_Trl::getInstance()->trlStaticExecute($content, $c->getLanguage());
     }
     $ret = array('componentId' => $row->component_id, 'content' => $content);
     return $ret;
 }
 public function __construct($componentId)
 {
     $this->_componentId = $componentId;
     parent::__construct();
 }
Ejemplo n.º 4
0
 public function load($row)
 {
     $ret = array('componentId' => $row->component_id, 'content' => parent::load($row));
     return $ret;
 }