Blog::get - jcobban/Genealogy GitHub Wiki

$blog->get($fieldname)

Up: class Blog

This gets the current value of the identified field. It has one parameter:

parameter description
$field The field name is case insensitive and may be a synonym defined by the derived class to facilitate readability. The field name may also be a temporary field defined by assigning a value to it in the set method. This method creates a trace entry if the field name does not correspond to any field in the record and debugging is enabled.

It overloads the base implementation as follows:

field name description
'bl_index' if the value is null this returns an empty string.
'bl_datetime' if the value is null this returns an empty string.
'bl_username' if the value is null this returns an empty string.
'bl_keyname' if the value is null this returns an empty string.
'bl_keyvalue' if the value is null this returns an empty string.
'bl_table' if the value is null this returns an empty string, otherwise it returns the external name of the associated table. For example if the record internally references 'tblIR' this returns 'Persons'.
'blogname' if the value is null or the empty string this returns the first line of the message text with any HTML tags removed.
'bl_text' if the value is null this returns an empty string. If the value does not contain any HTML tags then the returned value is enclose in an HTML <p> tag and each new-line character ends and starts a <p> tag.

This method returns the current value of the field. This method returns null if the field name does not correspond to any field in the record, and generates a warning message if debugging is enabled.