Exemple #1
0
 /**
  * 获取分类数目
  *
  * @access protected
  * @return integer
  */
 protected function ___categoriesNum()
 {
     return $this->db->fetchObject($this->db->select(array('COUNT(mid)' => 'num'))->from('table.metas')->where('table.metas.type = ?', 'category'))->num;
 }