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

Public Member Functions

 getTemplateName ()
 
 getHeight ()
 
 getFields ()
 
 getEmbedInTemplate ()
 
 getEmbedInField ()
 
 getLabel ()
 
 getAddButtonText ()
 
 getDisplay ()
 
 getEventTitleField ()
 
 getEventDateField ()
 
 getEventStartDateField ()
 
 getEventEndDateField ()
 
 getPlaceholder ()
 
 getDisplayedFieldsWhenMinimized ()
 
 allowsMultiple ()
 
 strictParsing ()
 
 getMinInstancesAllowed ()
 
 getMaxInstancesAllowed ()
 
 createMarkup ()
 
 getFullTextInPage ()
 
 pageCallsThisTemplate ()
 
 hasValueFromPageForField ( $field_name)
 
 getAndRemoveValueFromPageForField ( $field_name)
 
 getValuesFromPage ()
 
 getInstanceNum ()
 
 getGridValues ()
 
 incrementInstanceNum ()
 
 allInstancesPrinted ()
 
 addGridValue ( $field_name, $cur_value)
 
 addField ( $form_field)
 
 setFieldValuesFromSubmit ()
 
 getValuesFromSubmit ()
 
 setFieldValuesFromPage ( $existing_page_content)
 
 setPageRelatedInfo ( $existing_page_content)
 
 checkIfAllInstancesPrinted ( $form_submitted, $source_is_page)
 

Static Public Member Functions

static create ( $name, $label=null, $allowMultiple=null, $maxAllowed=null, $formFields=null)
 
static newFromFormTag ( $tag_components)
 
static escapeNonTemplatePipes ( $str)
 
static unescapeNonTemplatePipes ( $str)
 

Member Function Documentation

◆ escapeNonTemplatePipes()

static PFTemplateInForm::escapeNonTemplatePipes (   $str)
static

Change "non-template pipes", i.e. pipes that do not separate between template params but rather are contained within tag functions, into another character, so that they don't get handled and can be changed back into pipes later. (This doesn't include pipes contained within curly bracket parser functions - those are handled separately.)

Parameters
string$str
Returns
string

◆ setPageRelatedInfo()

PFTemplateInForm::setPageRelatedInfo (   $existing_page_content)

Set some vars based on the current contents of the page being edited - or at least vars that only need to be set if there's an existing page.

Parameters
string$existing_page_content

◆ unescapeNonTemplatePipes()

static PFTemplateInForm::unescapeNonTemplatePipes (   $str)
static
Parameters
string$str
Returns
string

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

About | General disclaimer | Privacy policy