0, 'nid' => 0, 'name' => '', 'parentid' => 0, 'displayorder' => 0, 'enabled' => 1, 'icon' => '', 'description' => '', 'styleid' => '', 'linkurl' => '', 'ishomepage' => 0, 'icontype' => '', 'css' => '', 'multiid' => '' ); public function getAllByUniacid($uniacid) { return $this->query->where('uniacid', $uniacid)->getall(); } public function getBySnake($fields = '*', $where = array(), $order = array('id' => 'DESC')) { return $this->query()->select($fields)->where($where)->orderBy($where); } public function searchWithSiteArticle() { return $this->query->from($this->tableName, 'a') ->leftjoin('site_article', 'b') ->on(array('a.id' => 'b.pcate')); } }