Beispiel #1
0
 /**
  * @return string
  */
 protected function _getLinkAttributes()
 {
     $attrs = array();
     if ($this->_getHelper()->canShowNewWindow()) {
         $attrs[] = 'target="_blank"';
     }
     if ($this->_banner->getTitle()) {
         $attrs[] = 'title="' . $this->htmlEscape($this->_banner->getTitle()) . '"';
     }
     return implode(' ', $attrs);
 }
Beispiel #2
0
 /**
  * @return Lanot_EasyBanner_Model_Banner|null
  */
 protected function _getBannerItem()
 {
     if ($this->_bannerItem !== null) {
         return $this->_bannerItem;
     }
     $itemId = $this->getRequest()->getParam($this->_bannerItemParam);
     $this->_bannerItem = $this->_getBannerItemModel();
     if ($itemId) {
         $this->_bannerItem->load($itemId);
     }
     return $this->_bannerItem;
 }