public function fetchSingle($args) { $args = func_get_args(); return $this->query($args)->fetchSingle(); }
/** * It returns number of all rows in table. * @return int */ public function selectNumOfAllRows() { return $this->connection->fetchSingle("SELECT COUNT(*) FROM `" . $this->table->getName() . "`"); }