Fixing get_count in the grade_model class

skala
Julio Montoya 14 years ago
parent 45166073f9
commit 2492e6805f
  1. 5
      main/inc/lib/grade_model.lib.php

@ -23,6 +23,11 @@ class GradeModel extends Model {
public function get_all($where_conditions = array()) {
return Database::select('*',$this->table, array('where'=>$where_conditions,'order' =>'name ASC'));
}
public function get_count() {
$row = Database::select('count(*) as count', $this->table, array(),'first');
return $row['count'];
}
/**

Loading…
Cancel
Save