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

Public Member Functions

 addFields ($fields=NULL, $label=NULL)
 
 addItem ($item)
 
 getItem ($index)
 
 count ()
 
 addInputs ($inputs, $fieldslabel=null)
 
 setFieldsPropertyValues ($property, $values)
 Sets the values of a property for each Field of each item in the collection.
 
 addFieldRule ($index, $type, $prompt=NULL, $value=NULL)
 
 addFieldRules ($index, $rules)
 
 addDropdown ($identifier, $items=array(), $label=NULL, $value=NULL, $multiple=false)
 Adds a new dropdown element.
 
 addButtonGroups ($identifier, $elements=[], $asIcons=false)
 Adds a new button groups.
 
 addDropdownButton ($identifier, $value, $items=[], $asCombo=false, $icon=null)
 Adds a button with a dropdown button.
 
 addInput ($identifier, $label=NULL, $type="text", $value=NULL, $placeholder=NULL)
 
 addTextarea ($identifier, $label, $value=NULL, $placeholder=NULL, $rows=5)
 
 addPassword ($identifier, $label=NULL)
 
 addButton ($identifier, $value, $cssStyle=NULL, $onClick=NULL)
 
 addButtonIcon ($identifier, $icon, $cssStyle=NULL, $onClick=NULL)
 
 addCheckbox ($identifier, $label=NULL, $value=NULL, $type=NULL)
 
 addRadio ($identifier, $name, $label=NULL, $value=NULL)
 
 addElement ($identifier, $content, $label, $tagName="div", $baseClass="")
 

Protected Member Functions

 createItem ($value)
 
 createCondition ($value)
 

Detailed Description

Definition at line 22 of file FieldsTrait.php.

Member Function Documentation

◆ addButton()

addButton (   $identifier,
  $value,
  $cssStyle = NULL,
  $onClick = NULL 
)

Definition at line 159 of file FieldsTrait.php.

◆ addButtonGroups()

addButtonGroups (   $identifier,
  $elements = [],
  $asIcons = false 
)

Adds a new button groups.

Parameters
string$identifier
array$elements
boolean$asIcons
Returns
HtmlButtonGroups

Definition at line 114 of file FieldsTrait.php.

◆ addButtonIcon()

addButtonIcon (   $identifier,
  $icon,
  $cssStyle = NULL,
  $onClick = NULL 
)

Definition at line 163 of file FieldsTrait.php.

◆ addCheckbox()

addCheckbox (   $identifier,
  $label = NULL,
  $value = NULL,
  $type = NULL 
)
Parameters
string$identifier
string$label
string$value
string$type
Returns
HtmlFormCheckbox

Definition at line 180 of file FieldsTrait.php.

◆ addDropdown()

addDropdown (   $identifier,
  $items = array(),
  $label = NULL,
  $value = NULL,
  $multiple = false 
)

Adds a new dropdown element.

Parameters
string$identifier
array$items
string$label
string$value
boolean$multiple
Returns
HtmlFormDropdown

Definition at line 103 of file FieldsTrait.php.

◆ addDropdownButton()

addDropdownButton (   $identifier,
  $value,
  $items = [],
  $asCombo = false,
  $icon = null 
)

Adds a button with a dropdown button.

Parameters
string$identifier
string$value
array$items
boolean$asCombo
string$icon
Returns
HtmlButtonGroups

Definition at line 127 of file FieldsTrait.php.

◆ addElement()

addElement (   $identifier,
  $content,
  $label,
  $tagName = "div",
  $baseClass = "" 
)

Definition at line 188 of file FieldsTrait.php.

◆ addFieldRule()

addFieldRule (   $index,
  $type,
  $prompt = NULL,
  $value = NULL 
)

Definition at line 78 of file FieldsTrait.php.

◆ addFieldRules()

addFieldRules (   $index,
  $rules 
)

Definition at line 86 of file FieldsTrait.php.

◆ addFields()

addFields (   $fields = NULL,
  $label = NULL 
)
abstract

Reimplemented in HtmlForm, and HtmlFormFields.

◆ addInput()

addInput (   $identifier,
  $label = NULL,
  $type = "text",
  $value = NULL,
  $placeholder = NULL 
)
Parameters
string$identifier
string$label
string$type
string$value
string$placeholder
Returns
HtmlFormInput

Definition at line 139 of file FieldsTrait.php.

◆ addInputs()

addInputs (   $inputs,
  $fieldslabel = null 
)

Definition at line 43 of file FieldsTrait.php.

◆ addItem()

addItem (   $item)
abstract

Reimplemented in HtmlForm, and HtmlFormFields.

◆ addPassword()

addPassword (   $identifier,
  $label = NULL 
)

Definition at line 155 of file FieldsTrait.php.

◆ addRadio()

addRadio (   $identifier,
  $name,
  $label = NULL,
  $value = NULL 
)

Definition at line 184 of file FieldsTrait.php.

◆ addTextarea()

addTextarea (   $identifier,
  $label,
  $value = NULL,
  $placeholder = NULL,
  $rows = 5 
)
Parameters
string$identifier
string$label
string$value
string$placeholder
int$rows
Returns
HtmlTextarea

Definition at line 151 of file FieldsTrait.php.

◆ count()

count ( )
abstract

◆ createCondition()

createCondition (   $value)
protected

Definition at line 39 of file FieldsTrait.php.

◆ createItem()

createItem (   $value)
protected

Definition at line 28 of file FieldsTrait.php.

◆ getItem()

getItem (   $index)
abstract

Reimplemented in HtmlFormFields.

◆ setFieldsPropertyValues()

setFieldsPropertyValues (   $property,
  $values 
)

Sets the values of a property for each Field of each item in the collection.

Parameters
string$property
array | mixed$values
Returns
HtmlFormFields

Definition at line 60 of file FieldsTrait.php.


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