class FtTemplate - jcobban/Genealogy GitHub Wiki

Class \Genealogy\FtTemplate

Up: PHP Programming Guide

Source Code

This class is derived from class \Templating\Template to implement the specific functionality required by the sample Family Tree web-site application.

This class defines the following common substitutions:

name contains
DEBUG 'Y' if debugging is activated, otherwise 'N'. This is used to pass the debugging activation state of the current script to any scripts requested from this script.
LANG the ISO language code requested by the user including an optional country qualifier as defined by IETF BCP 47
ADURL the URL of an advertising page to display. This is a randomly chosen page from the Advertisements directory.
IECRAP special attributes that are required in some tags to support IE7
USERID the identifier of the current user
AUTHORIZED a string containing a comma-separated list of capabilities of the current user
OPTION a numeric value representing a bit-mask of options chosen by the current user
KEYWORDS this contains additional keywords to add to the page header
CONTACTKEY if the current page is associated with a particular record in the database, this field contains the key of that record
CONTACTTABLE if the current page is associated with a particular table in the database, this field contains the name of that table
CONTACTSUBJECT this is the subject used for messages sent to administration when the user clicks on the "Contact Author" button.
BREADCRUMBS this is a trail of breadcrumbs, consisting of a set of hyperlinks, which shows the place in the site hierarchy where the current page is located. This is included in the page menu.

Next: class \Templating\TemplateTag