Esempio n. 1
0
 /**
  * Get the skin files (images) url for the selected theme and area
  *
  * @param string $file
  * @param array $params
  * @return string 
  */
 public function getSkinUrl($file = null, array $params = array())
 {
     if (empty($params['_area'])) {
         $params['_area'] = $this->getArea();
     }
     if (empty($params['_theme'])) {
         $params['_theme'] = $this->getTheme();
     }
     return parent::getSkinUrl($file, $params);
 }
Esempio n. 2
0
 /**
  * Get the breadcrumb HTML view
  * 
  * @return string HTML 
  */
 protected function _toHtml()
 {
     if (is_array($this->_crumbs)) {
         reset($this->_crumbs);
         $this->_crumbs[key($this->_crumbs)]['first'] = true;
         end($this->_crumbs);
         $this->_crumbs[key($this->_crumbs)]['last'] = true;
     }
     $this->assign('crumbs', $this->_crumbs);
     return parent::_toHtml();
 }
Esempio n. 3
0
 public function _prepareLayout()
 {
     $this->addMessages(App_Main::getSingleton('core/session')->getMessages(true));
     parent::_prepareLayout();
 }
Esempio n. 4
0
 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     return parent::_toHtml();
 }
Esempio n. 5
0
 /**
  * Get HTML view for a child block sorted
  * If name is not specified, this will return the HTML of all the child blocks
  * 
  * @param string $name
  * @param bool $useCache
  * @param bool $sorted
  * @return type 
  */
 public function getChildHtml($name = '', $useCache = true, $sorted = true)
 {
     return parent::getChildHtml($name, $useCache, $sorted);
 }
Esempio n. 6
0
 /**
  * 
  */
 public function __construct()
 {
     parent::__construct();
     $this->_beforeCacheUrl();
 }