SFFormField Class Reference
[Semantic Forms]

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

List of all members.

Public Member Functions

 getTemplateField ()
 getInputType ()
 isMandatory ()
 isHidden ()
 isList ()
 getInputName ()
 isDisabled ()
 setTemplateField ($templateField)
 setInputType ($inputType)
 setIsMandatory ($isMandatory)
 setIsHidden ($isHidden)
 setIsRestricted ($isRestricted)
 setFieldArg ($key, $value)
 inputTypeDropdownHTML ($field_form_text, $default_input_type, $possible_input_types, $cur_input_type)
 creationHTML ($template_num)
 createMarkup ($part_of_multiple, $is_last_field_in_template)
 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.

Static Public Member Functions

static create ($num, $template_field)
static createFromDefinition ($fieldName, $inputName, $isMandatory, $isHidden, $isUploadable, $possibleValues, $isDisabled, $isList, $inputType, $fieldArgs, $allFields, $strictParsing)

Public Attributes

 $template_field

Private Attributes

 $mNum
 $mInputType
 $mIsMandatory
 $mIsHidden
 $mIsRestricted
 $mPossibleValues
 $mIsList
 $mIsUploadable
 $mFieldArgs
 $mInputName
 $mIsDisabled


Detailed Description

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

Definition at line 15 of file SF_FormField.php.


Member Function Documentation

static SFFormField::create ( num,
template_field 
) [static]

Definition at line 36 of file SF_FormField.php.

References $template_field.

Referenced by SFTemplateInForm::create(), and SFPageSchemas::getFormFieldInfo().

static SFFormField::createFromDefinition ( fieldName,
inputName,
isMandatory,
isHidden,
isUploadable,
possibleValues,
isDisabled,
isList,
inputType,
fieldArgs,
allFields,
strictParsing 
) [static]

Definition at line 50 of file SF_FormField.php.

Referenced by SFFormPrinter::formHTML().

SFFormField::getTemplateField (  ) 

Definition at line 90 of file SF_FormField.php.

SFFormField::getInputType (  ) 

Definition at line 94 of file SF_FormField.php.

Referenced by createMarkup(), and creationHTML().

SFFormField::isMandatory (  ) 

Definition at line 98 of file SF_FormField.php.

SFFormField::isHidden (  ) 

Definition at line 102 of file SF_FormField.php.

SFFormField::isList (  ) 

Definition at line 106 of file SF_FormField.php.

Referenced by creationHTML().

SFFormField::getInputName (  ) 

Definition at line 110 of file SF_FormField.php.

SFFormField::isDisabled (  ) 

Definition at line 114 of file SF_FormField.php.

SFFormField::setTemplateField ( templateField  ) 

Definition at line 118 of file SF_FormField.php.

SFFormField::setInputType ( inputType  ) 

Definition at line 122 of file SF_FormField.php.

SFFormField::setIsMandatory ( isMandatory  ) 

Definition at line 126 of file SF_FormField.php.

SFFormField::setIsHidden ( isHidden  ) 

Definition at line 130 of file SF_FormField.php.

SFFormField::setIsRestricted ( isRestricted  ) 

Definition at line 134 of file SF_FormField.php.

SFFormField::setFieldArg ( key,
value 
)

Definition at line 138 of file SF_FormField.php.

SFFormField::inputTypeDropdownHTML ( field_form_text,
default_input_type,
possible_input_types,
cur_input_type 
)

Definition at line 142 of file SF_FormField.php.

Referenced by creationHTML().

SFFormField::creationHTML ( template_num  ) 

SFFormField::createMarkup ( part_of_multiple,
is_last_field_in_template 
)

Definition at line 264 of file SF_FormField.php.

References getInputType().

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.

Definition at line 312 of file SF_FormField.php.


Member Data Documentation

SFFormField::$mNum [private]

Definition at line 16 of file SF_FormField.php.

SFFormField::$template_field

Definition at line 17 of file SF_FormField.php.

Referenced by create(), and creationHTML().

SFFormField::$mInputType [private]

Definition at line 18 of file SF_FormField.php.

SFFormField::$mIsMandatory [private]

Definition at line 19 of file SF_FormField.php.

SFFormField::$mIsHidden [private]

Definition at line 20 of file SF_FormField.php.

SFFormField::$mIsRestricted [private]

Definition at line 21 of file SF_FormField.php.

SFFormField::$mPossibleValues [private]

Definition at line 22 of file SF_FormField.php.

SFFormField::$mIsList [private]

Definition at line 23 of file SF_FormField.php.

SFFormField::$mIsUploadable [private]

Definition at line 26 of file SF_FormField.php.

SFFormField::$mFieldArgs [private]

Definition at line 27 of file SF_FormField.php.

SFFormField::$mInputName [private]

Definition at line 33 of file SF_FormField.php.

SFFormField::$mIsDisabled [private]

Definition at line 34 of file SF_FormField.php.


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

Generated on Sun Mar 18 07:15:42 2012 for Semantic MediaWiki by  doxygen 1.5.6