/** * 函数GetInfoCount,返回分类信息数量 * 返回数量(子分类数量可以通过where获得) * @return int */ function GetInfoCount($classid) { $this->setTable('{tablepre}links'); $where = ''; if ($classid != 0) { $where = ' classid=' . $classid; } return parent::GetListCount($where); }
/** * 函数GetClassCount,返回新闻分类数量 * 返回分类数量(子分类数量可以通过where获得) * @return int */ function GetClassCount($id) { $this->setTable('{tablepre}downloads_class'); $where = ''; if ($id != 0) { $where = ' parentid=' . $id; } return parent::GetListCount($where); }
/** * 函数GetInfoCount,返回分类信息数量 * 返回数量(子分类数量可以通过where获得) * @return int */ function GetInfoCount($classid) { $this->setTable('{tablepre}products_photo'); $where = ''; if ($classid != 0) { $where = ' productid=' . $classid; } return parent::GetListCount($where); }
/** * 函数GetInfoCount,返回分类信息数量 * 返回数量可以通过where获得) * @return int */ function GetInfoCount() { $this->setTable('{tablepre}menus'); $where = ''; return parent::GetListCount($where); }