Example #1
0
 public function getDummy()
 {
     $color = str_replace('#', '', $this->getApplication()->getBlock('tabbar')->getImageColor());
     $option = new Application_Model_Option();
     $option->find('newswall', 'code');
     $dummy = new self();
     $dummy->addData($option->getData())->setTabbarName('Sample')->setIsDummy(1)->setIsActive(1)->setIconUrl(Core_Model_Url::create("template/block/colorize", array('id' => $dummy->getIconId(), 'color' => $color)))->setId(0);
     return $dummy;
 }