Example #1
0
 public function display($override = '')
 {
     if ($this->rss) {
         header('Content-Type: application/rss+xml; charset=UTF-8');
         die($this->generateRSS());
     } else {
         return parent::display($override);
     }
 }
Example #2
0
 public function display($override = '')
 {
     if ($override || $this->searchMask & SEARCH_TYPE_REGULAR) {
         return parent::display($override);
     } else {
         if ($this->searchMask & SEARCH_TYPE_OPEN) {
             if (!$this->loadCache($open)) {
                 $this->performSearch();
                 $open = $this->generateOpenSearch();
                 $this->saveCache($open);
             }
             header('Content-type: application/x-javascript; charset=utf-8');
             die($open);
         } else {
             if (!$this->loadCache($json)) {
                 $this->performSearch();
                 $json = $this->generateJsonSearch();
                 $this->saveCache($json);
             }
             header('Content-type: application/x-javascript; charset=utf-8');
             die($json);
         }
     }
 }
Example #3
0
 public function display($override = '')
 {
     if ($this->mode != CACHE_TYPE_TOOLTIP) {
         return parent::display($override);
     }
     // do not cache profile tooltips
     header('Content-type: application/x-javascript; charset=utf-8');
     die($this->generateTooltip());
 }
Example #4
0
 public function display($override = '')
 {
     if ($this->mode != CACHE_TYPE_TOOLTIP) {
         return parent::display($override);
     }
     if (!$this->loadCache($tt)) {
         $tt = $this->generateTooltip();
         $this->saveCache($tt);
     }
     header('Content-type: application/x-javascript; charset=utf-8');
     die($tt);
 }