public function __construct($stdClass = null) { parent::__construct($stdClass); $this->stdClass = $stdClass; }
/** * @desc 热门排行|最新更新 * @access public * @param int c_id * @return array */ public function hotandnew($c_id, $action) { if (empty($c_id)) { return false; } //热门排行 $sql = "SELECT * FROM el_article WHERE c_id = " . $c_id . " ORDER BY click DESC LIMIT 10"; $hottop = parent::FetchArray($sql); //$this->getInformation(0,0,10,"c"); //最新更新 $sql = "SELECT * FROM el_article WHERE c_id = " . $c_id . " ORDER BY add_time DESC LIMIT 10"; $newtop = parent::FetchArray($sql); require_once THEME . "/category/category_right_article_wiki_hotnew" . ".html"; //return array("hottop"=>$hottop,"newtop"=>$newtop); }
public function getProg() { return parent::_Lang($this->programa); }