Ejemplo n.º 1
0
 function process()
 {
     parent::process();
     $this->_content['id'] = $this->getId();
     $this->_content['cssClass'] = $this->getAttribute('cssClass');
     $this->_content['title'] = $this->getAttributeString('title');
     $this->_content['label'] = $this->getAttributeString('label');
     $this->_content['buttonLabel'] = $this->getAttributeString('buttonLabel');
     $this->_content['value'] = __Request::get('search', '');
     if (!$this->_content['buttonLabel']) {
         $this->_content['buttonLabel'] = $this->_content['label'];
     }
     $searchPageId = $this->getAttribute('searchPageId');
     if (!is_int($searchPageId)) {
         $siteMap = $this->_application->getSiteMap();
         $menu = $siteMap->getMenuByPageType($searchPageId);
         if ($menu && $menu->isVisible) {
             $this->_content['__url__'] = org_glizy_helpers_Link::makeURL('link', array('pageId' => $menu->id));
         } else {
             $this->setAttribute('visible', false);
         }
     } else {
         $this->_content['__url__'] = org_glizy_helpers_Link::makeURL('link', array('pageId' => $searchPageId));
     }
 }
Ejemplo n.º 2
0
 function process()
 {
     parent::process();
     $this->imageId = $this->getAttribute('imageId');
 }