Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
PFTemplateField Class Reference

Public Member Functions

 setTypeAndPossibleValues ()
 
 setSemanticProperty ( $semantic_property)
 
 setCargoFieldData ( $tableName, $fieldName, $fieldDescription=null)
 
 getFieldName ()
 
 getValueLabels ()
 
 getLabel ()
 
 getSemanticProperty ()
 
 getPropertyType ()
 
 getFullCargoField ()
 
 getFieldType ()
 
 getPossibleValues ()
 
 getHierarchyStructure ()
 
 isList ()
 
 getDelimiter ()
 
 getDisplay ()
 
 getNamespace ()
 
 isMandatory ()
 
 isUnique ()
 
 getRegex ()
 
 setTemplateField ( $templateField)
 
 setLabel ( $label)
 
 setNamespace ( $namespace)
 
 setFieldType ( $fieldType)
 
 setPossibleValues ( $possibleValues)
 
 setHierarchyStructure ( $hierarchyStructure)
 
 createText ( $cargoInUse)
 

Static Public Member Functions

static create ( $name, $label, $semanticProperty=null, $isList=null, $delimiter=null, $display=null)
 

Member Function Documentation

◆ setCargoFieldData()

PFTemplateField::setCargoFieldData (   $tableName,
  $fieldName,
  $fieldDescription = null 
)

Equivalent to setSemanticProperty(), but called when using Cargo instead of SMW.

Parameters
string$tableName
string$fieldName
string | null$fieldDescription

◆ setSemanticProperty()

PFTemplateField::setSemanticProperty (   $semantic_property)

Called if a matching property is found for a template field when a template is parsed during the creation of a form.

Parameters
string$semantic_property

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy