new CountyMarriageReportSet
James Cobban edited this page Dec 15, 2019
·
1 revision
Up: class CountyMarriageReportSet
The constructor for an instance of CountyMarriageReportSet
takes one parameter:
parameter | description |
---|---|
$parms | identifies the database records to be associated with this instance. This is an array. |
$parms may be:
- an associative array of
fieldname => value pairs
to define the subset of the records in the SQL table that are represented by this instance. The parameters 'offset', 'limit', 'groupby',and 'order' are reserved to set the OFFSET, LIMIT, GROUP BY and ORDER BY clauses. - an array of instances of the class CountyMarriageReport to be converted into a
RecordSet
. - If this parameter is omitted, or is
null
, the object is empty. That is$set->count()
is zero.
The field names that may be specified in the associative array format include:
field name | description | synonyms |
---|---|---|
'limit' | maximum number of entries to return | |
'offset' | offset for retrieving part of the response set | |
'orderby' | value of the ORDER BY clause to override the default from class CountyMarriageReport
|
|
'groupby' | value of the GROUP BY clause |
For example:
$censuses = new CountyMarriageReportSet(array('county' => 'Msx'));
returns all instances of CountyMarriageReport
for Middlesex County.
The constructor adds error messages to $record->msg
if it is unable to complete due to bad parameters.
Next: class CountyMarriageSet