|
| __construct ( $templateName, $templateFields) |
|
| loadTemplateFields () |
|
| loadTemplateFieldsSMWAndOther () |
|
| loadPropertySettingInTemplate ( $fieldName, $propertyName, $isList) |
|
| loadTemplateFieldsCargo ( $templateTitle) |
|
| getTemplateFields () |
|
| getFieldNamed ( $fieldName) |
|
| setConnectingProperty ( $connectingProperty) |
|
| setCategoryName ( $categoryName) |
|
| setAggregatingInfo ( $aggregatingProperty, $aggregationLabel) |
|
| setFieldStartAndEnd ( $fieldStart, $fieldEnd) |
|
| setTemplateStartAndEnd ( $templateStart, $templateEnd) |
|
| setFormat ( $templateFormat) |
|
| createCargoDeclareCall () |
|
| createCargoStoreCall () |
|
| createText () |
|
| createTextForField ( $field) |
|
|
static | newFromName ( $templateName) |
|
◆ createText()
PFTemplate::createText |
( |
| ) |
|
Creates the text of a template, when called from Special:CreateTemplate, Special:CreateClass or the Page Schemas extension.
- Returns
- string
◆ loadPropertySettingInTemplate()
PFTemplate::loadPropertySettingInTemplate |
( |
|
$fieldName, |
|
|
|
$propertyName, |
|
|
|
$isList |
|
) |
| |
For a field name and its attached property name located in the template text, create an PFTemplateField object out of it, and add it to $this->mTemplateFields.
- Parameters
-
string | $fieldName | |
string | $propertyName | |
bool | $isList | |
◆ loadTemplateFields()
PFTemplate::loadTemplateFields |
( |
| ) |
|
- fix so that this function only gets called once per template; right now it seems to get called once per field. (!)
◆ loadTemplateFieldsSMWAndOther()
PFTemplate::loadTemplateFieldsSMWAndOther |
( |
| ) |
|
Get the fields of the template, along with the semantic property attached to each one (if any), by parsing the text of the template.
The documentation for this class was generated from the following file: