PDO4You\Pagination::getTotalOfRecords PHP Method

getTotalOfRecords() public static method

Gets the total number of records
public static getTotalOfRecords ( ) : integer
return integer
    public static function getTotalOfRecords()
    {
        return self::$total_records;
    }

Usage Example

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);
     }
 }