Template::get - jcobban/Genealogy GitHub Wiki
$template->get($marker)
Up: class Template
This retrieves the text that is to be substituted for the specified marker. The case of the label in the insertion point must match the case of the parameter to method set. If no value has been set for the specified marker this method returns null.
This method has one parameter:
parameter | description |
---|---|
$marker | the name of the insertion point. Note that this must match exactly as to case with the point defined in the template. For clarity it is recommended that these marker names be all upper case. |
Examples:
$text = 'A piece of text';
$template->set('TEXT', $text);
$value = $template->get('TEXT');
print $value;
This prints 'A piece of text'.