public function xs_get_hotquery() { $count = intval($this->input['count']); @(include_once ROOT_PATH . 'lib/class/textsearch.class.php'); $ts = new textsearch(); $hot = $ts->xs_get_hotquery($count); if (is_array($hot) && $hot) { foreach ($hot as $k => $v) { $r = array('title' => $k, 'num' => $v); $this->addItem($r); } $this->output(); } }