code/Report.php
public function getCount($params = array())
    {
        $sourceRecords = $this->sourceRecords($params, null, null);
        if (!$sourceRecords instanceof SS_List) {
            user_error(static::class . "::sourceRecords does not return an SS_List", E_USER_NOTICE);
            return "-1";
        }
        return $sourceRecords->count();
    }
public function getCount($params = array())
    {
        $sourceRecords = $this->sourceRecords($params, null, null);
        if (!$sourceRecords instanceof SS_List) {
            user_error(static::class . "::sourceRecords does not return an SS_List", E_USER_NOTICE);
            return "-1";
        }
        return $sourceRecords->count();
    }
public function getCount ( $ params = array ( ) ) { $ sourceRecords = $ this -> sourceRecords ( $ params , null , null ) ; if ( ! $ sourceRecords instanceof SS_List ) { user_error ( static :: class . "::sourceRecords does not return an SS_List" , E_USER_NOTICE ) ; return "-1" ; } return $ sourceRecords -> count ( ) ; }
counts the number of objects returned
@param array $params - any parameters for the sourceRecords
@return int
counts the number of objects returned