ToDo::set - jcobban/Genealogy GitHub Wiki

$todo->set($fieldname, $value)

Up: class ToDo

This changes the value of the identified field and returns the former value. It has two parameters:

parameter description
$field The field name is case insensitive and may be a synonym defined by the derived class to facilitate readability. Late static binding is used so this method takes advantage of field name definitions in the derived class. The field name may also be a temporary field defined by assigning a value to it in this method. This method creates a trace entry if the field name does not correspond to any field in the record and debugging is enabled.
$value The new value to assign to the field.

It overloads the base implementation as follows:

field name description
'idtc' The value is validated as a key of table tblTC. The category constants should be used for legibility.
'openedd' The input value may be an external string date or an instance of LegacyDate.
'reminderd' The input value may be an external string date or an instance of LegacyDate.
'closedd' The input value may be an external string date or an instance of LegacyDate.
'idtl' The value must be a positive integer or an instance of class Location.
'idar' The value must be a positive integer or an instance of class Address.
'status' The value is set to 1 if the value is considered true by PHP, otherwise it is set to 0.
'tag1' The value is set to 1 if the value is considered true by PHP, otherwise it is set to 0.
'qstag' The value is set to 1 if the value is considered true by PHP, otherwise it is set to 0.
'used' The value is set to 1 if the value is considered true by PHP, otherwise it is set to 0.

Next: class Township