Ejemplo n.º 1
0
 public function RenderContent(WebPage $oPage, $aExtraParams = array())
 {
     OQLMenuNode::RenderOQLSearch($this->sOQL, Dict::S($this->sPageTitle), 'Menu_' . $this->GetMenuId(), $this->bSearch, true, $oPage, array_merge($this->m_aParams, $aExtraParams));
 }
Ejemplo n.º 2
0
 public function RenderContent(WebPage $oPage, $aExtraParams = array())
 {
     $oPage->set_title($this->Get('name'));
     switch ($this->Get('auto_reload')) {
         case 'custom':
             $iRate = (int) $this->Get('auto_reload_sec');
             if ($iRate > 0) {
                 // Must a string otherwise it can be evaluated to 'true' and defaults to "standard" refresh rate!
                 $aExtraParams['auto_reload'] = (string) $iRate;
             }
             break;
         default:
         case 'none':
     }
     $bSearchPane = true;
     $bSearchOpen = false;
     try {
         OQLMenuNode::RenderOQLSearch($this->Get('oql'), $this->Get('name'), 'shortcut_' . $this->GetKey(), $bSearchPane, $bSearchOpen, $oPage, $aExtraParams);
     } catch (Exception $e) {
         throw new Exception("The OQL shortcut '" . $this->Get('name') . "' (id: " . $this->GetKey() . ") could not be displayed: " . $e->getMessage());
     }
 }