public function CountPaginator($d) { switch ($d->type) { case 'subjectList': $d->fieldid = intval($d->fieldid); $row = RecordBookQuery::CountSubject($this->db, $d->fieldid); break; case 'groupList': $d->frmstudy = intval($d->frmstudy); $row = RecordBookQuery::CountGroup($this->db, $d->frmstudy); break; } return $row; }