public getTotalCount ( ) : integer | ||
리턴 | integer |
public function getTotalCount()
{
try {
$amount = (int) $this->db->fetchOne("SELECT COUNT(*) as amount FROM " . Resource::TABLE_NAME . " " . $this->getCondition(), $this->model->getConditionVariables());
} catch (\Exception $e) {
}
return $amount;
}