function template($tpl, $params = array()) { SpotTiming::start(__FUNCTION__ . ':' . $tpl); extract($params, EXTR_REFS); $settings = $this->_settings; $pagetitle = $this->_pageTitle; # update the template helper variables $this->_tplHelper->setParams($params); # Expose some variables to the template script in its local scope $tplHelper = $this->_tplHelper; $currentSession = $this->_currentSession; $spotSec = $this->_currentSession['security']; # send any expire headers $this->sendExpireHeaders(true); $this->sendContentTypeHeader('html'); # and include the template foreach ($this->_templatePaths as $tplPath) { if (file_exists($tplPath . $tpl . '.inc.php')) { require_once $tplPath . $tpl . '.inc.php'; break; } # if } # foreach SpotTiming::stop(__CLASS__ . '::' . __FUNCTION__ . ':' . $tpl, array($params)); }
function getWatchList() { if (self::$wtList == null) { self::$wtList = $this->_db->getWatchList(array('field' => 'stamp', 'direction' => 'desc')); } # if return self::$wtList; }