getTotalOfRecords() public static method

Gets the total number of records
public static getTotalOfRecords ( ) : integer
return integer
Example #1
0
 /**
  * Displays the total number of records
  * 
  * */
 public function getTotalOfRecords()
 {
     // Returns the total number of records in paging
     if (Pagination::getPaging() == TRUE) {
         return Pagination::getTotalOfRecords();
     } else {
         return count(self::$hasRecords);
     }
 }