Page::save
James Cobban edited this page Jun 23, 2021
·
1 revision
Up: class Page
This method updates the record contents in the database server. If previously detected errors have been accumulated in $this‑>msg
this method suppresses the update, generates a warning that includes the text of the messages to explain why the record was not updated, and returns false
. If $advertiser‑>isExisting()
is false this inserts a new record into the table. If $advertiser->isExisting()
is true the existing database record is updated.
The method returns boolean false
if the method was unable to update the database, 1 if the method updated the database record, or 0 if the database did not need to be updated because there were no changes to the record.
Next: class PageSet