phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
FieldAsTrait Class Reference
+ Inheritance diagram for FieldAsTrait:

Public Member Functions

 setValueFunction ($index, $callback)
 
 setPropertyValues ($property, $indexValues)
 Defines the values for the fields for a property (or html attribute).
 
 fieldAsProgress ($index, $label=NULL, $attributes=array())
 
 fieldAsRating ($index, $max=5, $icon="")
 
 fieldAsLabel ($index, $icon=NULL, $attributes=NULL)
 
 fieldAsHeader ($index, $niveau=1, $icon=NULL, $attributes=NULL)
 
 fieldAsImage ($index, $size=Size::MINI, $circular=false)
 
 fieldAsFlag ($index)
 
 fieldAsIcon ($index)
 
 fieldAsAvatar ($index, $attributes=NULL)
 
 fieldAsRadio ($index, $attributes=NULL)
 
 fieldAsRadios ($index, $elements=[], $attributes=NULL)
 
 fieldAsList ($index, $classNames="", $attributes=NULL)
 
 fieldAsInput ($index, $attributes=NULL)
 
 fieldAsLabeledInput ($index, $attributes=NULL)
 
 fieldAsDataList ($index, ?array $items=[], $attributes=NULL)
 
 fieldAsFile ($index, $attributes=NULL)
 
 fieldAsTextarea ($index, $attributes=NULL)
 
 fieldAsElement ($index, $tagName="div", $baseClass="", $attributes=NULL)
 
 fieldAsHidden ($index, $attributes=NULL)
 
 fieldAsCheckbox ($index, $attributes=NULL)
 
 fieldAsDropDown ($index, $elements=[], $multiple=false, $attributes=NULL)
 
 fieldAsMessage ($index, $attributes=NULL)
 
 fieldAsLink ($index, $attributes=NULL)
 
 fieldsAs (array $types)
 Change fields type.
 
 fieldAs ($index, $type, $attributes=NULL)
 
 fieldAsSubmit ($index, $cssStyle=NULL, $url=NULL, $responseElement=NULL, $attributes=NULL)
 
 fieldAsButton ($index, $cssStyle=NULL, $attributes=NULL)
 
 fieldAsDataTable ($index, $model, $instances=null, $fields=[], $attributes=NULL)
 

Protected Member Functions

 _getFieldIdentifier ($prefix, $name="")
 
 _getFieldName ($index)
 
 _getFieldCaption ($index)
 
 _buttonAsSubmit (BaseHtml &$button, $event, $url, $responseElement=NULL, $parameters=NULL)
 
 _applyAttributes (BaseHtml $element, &$attributes, $index, $instance=null)
 
 _addRules (HtmlFormField $element, &$attributes)
 
 _prepareFormFields (HtmlFormField &$field, $name, &$attributes)
 
 _fieldAs ($elementCallback, &$index, $attributes=NULL, $prefix=null)
 

Private Member Functions

 _getLabelField ($caption, $icon=NULL)
 

Private Attributes

 $_speProperties
 

Detailed Description

Definition at line 38 of file FieldAsTrait.php.

Member Function Documentation

◆ _addRules()

_addRules ( HtmlFormField  $element,
$attributes 
)
protected

Definition at line 75 of file FieldAsTrait.php.

◆ _applyAttributes()

_applyAttributes ( BaseHtml  $element,
$attributes,
  $index,
  $instance = null 
)
protected
Parameters
HtmlFormField$element
array$attributes

Definition at line 57 of file FieldAsTrait.php.

◆ _buttonAsSubmit()

_buttonAsSubmit ( BaseHtml $button,
  $event,
  $url,
  $responseElement = NULL,
  $parameters = NULL 
)
abstractprotected

◆ _fieldAs()

_fieldAs (   $elementCallback,
$index,
  $attributes = NULL,
  $prefix = null 
)
protected

Reimplemented in BusinessForm.

Definition at line 94 of file FieldAsTrait.php.

◆ _getFieldCaption()

_getFieldCaption (   $index)
abstractprotected

Reimplemented in Widget, DataElement, and DataTable.

◆ _getFieldIdentifier()

_getFieldIdentifier (   $prefix,
  $name = "" 
)
abstractprotected

Reimplemented in Widget, DataElement, and DataForm.

◆ _getFieldName()

_getFieldName (   $index)
abstractprotected

Reimplemented in Widget, DataElement, and DataTable.

◆ _getLabelField()

_getLabelField (   $caption,
  $icon = NULL 
)
private

Definition at line 70 of file FieldAsTrait.php.

◆ _prepareFormFields()

_prepareFormFields ( HtmlFormField $field,
  $name,
$attributes 
)
protected

Definition at line 88 of file FieldAsTrait.php.

◆ fieldAs()

fieldAs (   $index,
  $type,
  $attributes = NULL 
)

Definition at line 349 of file FieldAsTrait.php.

◆ fieldAsAvatar()

fieldAsAvatar (   $index,
  $attributes = NULL 
)

Definition at line 193 of file FieldAsTrait.php.

◆ fieldAsButton()

fieldAsButton (   $index,
  $cssStyle = NULL,
  $attributes = NULL 
)

Definition at line 374 of file FieldAsTrait.php.

◆ fieldAsCheckbox()

fieldAsCheckbox (   $index,
  $attributes = NULL 
)

Definition at line 292 of file FieldAsTrait.php.

◆ fieldAsDataList()

fieldAsDataList (   $index,
?array  $items = [],
  $attributes = NULL 
)

Definition at line 247 of file FieldAsTrait.php.

◆ fieldAsDataTable()

fieldAsDataTable (   $index,
  $model,
  $instances = null,
  $fields = [],
  $attributes = NULL 
)

Definition at line 381 of file FieldAsTrait.php.

◆ fieldAsDropDown()

fieldAsDropDown (   $index,
  $elements = [],
  $multiple = false,
  $attributes = NULL 
)

Definition at line 302 of file FieldAsTrait.php.

◆ fieldAsElement()

fieldAsElement (   $index,
  $tagName = "div",
  $baseClass = "",
  $attributes = NULL 
)

Definition at line 274 of file FieldAsTrait.php.

◆ fieldAsFile()

fieldAsFile (   $index,
  $attributes = NULL 
)

Definition at line 256 of file FieldAsTrait.php.

◆ fieldAsFlag()

fieldAsFlag (   $index)

Definition at line 177 of file FieldAsTrait.php.

◆ fieldAsHeader()

fieldAsHeader (   $index,
  $niveau = 1,
  $icon = NULL,
  $attributes = NULL 
)

Definition at line 157 of file FieldAsTrait.php.

◆ fieldAsHidden()

fieldAsHidden (   $index,
  $attributes = NULL 
)

Definition at line 283 of file FieldAsTrait.php.

◆ fieldAsIcon()

fieldAsIcon (   $index)

Definition at line 185 of file FieldAsTrait.php.

◆ fieldAsImage()

fieldAsImage (   $index,
  $size = Size::MINI,
  $circular = false 
)

Definition at line 166 of file FieldAsTrait.php.

◆ fieldAsInput()

fieldAsInput (   $index,
  $attributes = NULL 
)

Definition at line 222 of file FieldAsTrait.php.

◆ fieldAsLabel()

fieldAsLabel (   $index,
  $icon = NULL,
  $attributes = NULL 
)

Definition at line 148 of file FieldAsTrait.php.

◆ fieldAsLabeledInput()

fieldAsLabeledInput (   $index,
  $attributes = NULL 
)

Definition at line 229 of file FieldAsTrait.php.

◆ fieldAsLink()

fieldAsLink (   $index,
  $attributes = NULL 
)

Definition at line 318 of file FieldAsTrait.php.

◆ fieldAsList()

fieldAsList (   $index,
  $classNames = "",
  $attributes = NULL 
)

Definition at line 214 of file FieldAsTrait.php.

◆ fieldAsMessage()

fieldAsMessage (   $index,
  $attributes = NULL 
)

Definition at line 310 of file FieldAsTrait.php.

◆ fieldAsProgress()

fieldAsProgress (   $index,
  $label = NULL,
  $attributes = array() 
)

Definition at line 132 of file FieldAsTrait.php.

◆ fieldAsRadio()

fieldAsRadio (   $index,
  $attributes = NULL 
)

Definition at line 201 of file FieldAsTrait.php.

◆ fieldAsRadios()

fieldAsRadios (   $index,
  $elements = [],
  $attributes = NULL 
)

Definition at line 208 of file FieldAsTrait.php.

◆ fieldAsRating()

fieldAsRating (   $index,
  $max = 5,
  $icon = "" 
)

Definition at line 140 of file FieldAsTrait.php.

◆ fieldAsSubmit()

fieldAsSubmit (   $index,
  $cssStyle = NULL,
  $url = NULL,
  $responseElement = NULL,
  $attributes = NULL 
)

Definition at line 366 of file FieldAsTrait.php.

◆ fieldAsTextarea()

fieldAsTextarea (   $index,
  $attributes = NULL 
)

Definition at line 267 of file FieldAsTrait.php.

◆ fieldsAs()

fieldsAs ( array  $types)

Change fields type.

Parameters
array$typesan array or associative array $type=>$attributes

Definition at line 331 of file FieldAsTrait.php.

◆ setPropertyValues()

setPropertyValues (   $property,
  $indexValues 
)

Defines the values for the fields for a property (or html attribute).

Parameters
int | string$propertythe property to update
array$indexValuesarray of field=>value

Definition at line 125 of file FieldAsTrait.php.

◆ setValueFunction()

setValueFunction (   $index,
  $callback 
)
abstract

Reimplemented in Widget.

Field Documentation

◆ $_speProperties

$_speProperties
private

Definition at line 50 of file FieldAsTrait.php.


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