BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SFFormField Class Reference

Public Member Functions

 getTemplateField ()
 
 setTemplateField ($templateField)
 
 getInputType ()
 
 setInputType ($inputType)
 
 hasFieldArg ($key)
 
 getFieldArgs ()
 
 getFieldArg ($key)
 
 setFieldArg ($key, $value)
 
 getDefaultValue ()
 
 isMandatory ()
 
 setIsMandatory ($isMandatory)
 
 isHidden ()
 
 setIsHidden ($isHidden)
 
 isRestricted ()
 
 setIsRestricted ($isRestricted)
 
 holdsTemplate ()
 
 isList ()
 
 getPossibleValues ()
 
 getInputName ()
 
 getLabel ()
 
 isDisabled ()
 
 setDescriptionArg ($key, $value)
 
 getCurrentValue ($template_instance_query_values, $form_submitted, $source_is_page, $all_instances_printed)
 
 setValuesWithMappingTemplate ()
 
 setValuesWithMappingProperty ()
 
 setValuesWithMappingCargoField ()
 
 disambiguateLabels ($labels)
 
 labelToValue ($label)
 
 valueStringToLabels ($valueString, $delimiter)
 
 additionalHTMLForInput ($cur_value, $field_name, $template_name)
 
 createMarkup ($part_of_multiple, $is_last_field_in_template)
 
 getArgumentsForInputCallSMW (&$other_args)
 
 getArgumentsForInputCallCargo (&$other_args)
 
 getArgumentsForInputCall ($default_args=null)
 

Static Public Member Functions

static create ($template_field)
 
static newFromFormFieldTag ($tag_components, $template, $template_in_form, $form_is_disabled)
 

Public Attributes

 $template_field
 

Detailed Description

This class is distinct from SFTemplateField in that it represents a template field defined in a form definition - it contains an SFTemplateField object within it (the $template_field variable), along with the other properties for that field that are set within the form.

Member Function Documentation

SFFormField::getArgumentsForInputCall (   $default_args = null)

Since Semantic Forms uses a hook system for the functions that create HTML inputs, most arguments are contained in the "$other_args" array - create this array, using the attributes of this form field and the template field it corresponds to, if any.

SFFormField::labelToValue (   $label)

Map a label back to a value.

SFFormField::setValuesWithMappingCargoField ( )

Helper function to get an array of labels from an array of values given a mapping Cargo table/field.

SFFormField::setValuesWithMappingProperty ( )

Helper function to get an array of labels from an array of values given a mapping property.

SFFormField::setValuesWithMappingTemplate ( )

Helper function to get an array of labels from an array of values given a mapping template.

SFFormField::valueStringToLabels (   $valueString,
  $delimiter 
)

Map a template field value into labels.


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