Record::postData - jcobban/Genealogy GitHub Wiki

$record->postUpdate($xml)

Up: class Record

This method updates the contents of the instance of Record based upon the contents of the system variable $_POST. For each member of $_POST whose name, translated by the standard algorithm in Record::getRealFieldName, matches a field name in the current record the value of the identified key of the private associative array $record->row is updated, and if the new value is different is also stored in the private associative array $record->changed, with the exception of an auto-increment numeric primary key.

parameter description
$xml If this parameter is true then an XML <parms> tag is emitted which contains a tag for each member of $_POST. The name of each tag is the name of the field in $_POST, and the text contained within the tag is the new value of the field.

This function makes the implementation of a PHP script that updates a database record trivial.

Next: $record->save($xml)