-
Notifications
You must be signed in to change notification settings - Fork 236
TotalRecordsFound
Note: This page documents capabilities available in the older 1.x version. Please see this repository's README file for the new 2.x version documentation.
TotalRecordsFound ( [ string $pointer_id ] )
Returns number of records server says matches query from previous SearchQuery(). If your SearchQuery() request included Count=1, this number may just be the number of records returned in the response or may be the total number of records that match your query (caused by an ambiguity in the RETS specification and dependant on server implementor). SearchQuery() with Count=0 will not return this value. SearchQuery() with Count=2 will return a value representing all matching records with no records.
$pointer_id
- The returned value from SearchQuery(). If not given, defaults to last SearchQuery() pointer
Integer
Represents 'Count' reported by server. See description above for ambiguity.
1.0rc2 - Made $pointer_id a parameter that can be passed
<?php
if ($rets->TotalRecordsFound() > 1000) {
// server reports more than 1000
}