コード例 #1
0
ファイル: Component.php プロジェクト: nsams/koala-framework
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['title'] = $this->getData()->row->title;
     $ret['publish_date'] = $this->getData()->row->publish_date;
     return $ret;
 }
コード例 #2
0
ファイル: Component.php プロジェクト: nsams/koala-framework
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['addToCart'] = $this->getData()->getChildComponent('-addToCart');
     $ret['currentPrice'] = $this->getData()->row->current_price;
     return $ret;
 }
コード例 #3
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['addToCart'] = $this->getData()->getChildComponent('-addToCart');
     $ret['currentPrice'] = $this->getData()->row->current_price;
     return $ret;
 }
コード例 #4
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['title'] = $this->getData()->row->title;
     $ret['publish_date'] = $this->getData()->row->publish_date;
     return $ret;
 }
コード例 #5
0
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['config'] = array('isTopArticle' => $this->getData()->getRow()->is_top ? 1 : 0);
     $ret['title'] = $this->getData()->row->title;
     $ret['author'] = $this->getData()->row->getParentRow('Author');
     return $ret;
 }
コード例 #6
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = Kwc_Directories_Item_Detail_Component::getTemplateVars($renderer);
     $ret['title'] = $this->getData()->row->title;
     $ret['start_date'] = $this->getData()->row->start_date;
     $ret['end_date'] = $this->getData()->row->end_date;
     return $ret;
 }
コード例 #7
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['config'] = array('isTopArticle' => $this->getData()->getRow()->is_top ? 1 : 0);
     $ret['title'] = $this->getData()->row->title;
     $ret['author'] = $this->getData()->row->getParentRow('Author');
     return $ret;
 }
コード例 #8
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $generators = $this->_getSetting('generators');
     foreach ($generators['child']['component'] as $generator => $class) {
         if (is_instance_of($class, 'Kwc_User_Detail_Menu_Component')) {
             unset($ret['items'][$generator]);
         } else {
             $ret['items'][$generator] = Kwc_Abstract::getSetting($class, 'componentName');
         }
     }
     return $ret;
 }
コード例 #9
0
ファイル: Component.php プロジェクト: nsams/koala-framework
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret['title'] = $this->getData()->row->title;
     $ret['publish_date'] = $this->getData()->row->publish_date;
     $ret['author'] = $this->getData()->row->author_firstname . ' ' . $this->getData()->row->author_lastname;
     if ($this->_getPlaceholder('nextLink')) {
         $s = new Kwf_Component_Select();
         $s->whereGenerator('detail');
         $s->order('publish_date', 'ASC');
         $s->where(new Kwf_Model_Select_Expr_Higher('publish_date', new Kwf_Date($this->getData()->row->publish_date)));
         $ret['nextPost'] = $this->getData()->parent->getChildComponent($s);
     }
     if ($this->_getPlaceholder('previousLink')) {
         $s = new Kwf_Component_Select();
         $s->whereGenerator('detail');
         $s->order('publish_date', 'DESC');
         $s->where(new Kwf_Model_Select_Expr_Lower('publish_date', new Kwf_Date($this->getData()->row->publish_date)));
         $ret['previousPost'] = $this->getData()->parent->getChildComponent($s);
     }
     return $ret;
 }
コード例 #10
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['queryParts'] = $this->getData()->parent->getChildComponent('-view')->getComponent()->getSearchForm()->getComponent()->getFormRow()->query;
     return $ret;
 }