new Advertiser
James Cobban edited this page Apr 2, 2021
·
2 revisions
Up: class Advertiser
The constructor for an instance of class Advertiser
takes one parameter:
parameter | description |
---|---|
$parms | identifies the database record to be associated with this instance. This is an associative array. |
$parms may be:
- An associative array containing all of the fields in a record as obtained by a database SELECT.
-
array('adname' => string)
specifies the instance of Advertiser by the unique advertiser name key of the existing record in the table that is to be used to initialize the new instance. -
array('row' => number)
specifies the instance of Advertiser by the unique numeric row number of the existing record in the table.
The constructor adds error messages to $record->msg
if it is unable to complete due to bad parameters. If there are any such messages $user->save()
will do nothing.