phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Ajax\semantic\widgets\base Namespace Reference

Data Structures

class  InstanceViewer
 

Functions

 setValueFunction ($index, $callback)
 
 _getFieldName ($index)
 
 _getFieldCaption ($index)
 
 _buttonAsSubmit (BaseHtml &$button, $event, $url, $responseElement=NULL, $parameters=NULL)
 
 _applyAttributes (BaseHtml $element, &$attributes, $index, $instance=null)
 
 _getLabelField ($caption, $icon=NULL)
 
 _addRules (HtmlFormField $element, &$attributes)
 
 _prepareFormFields (HtmlFormField &$field, $name, &$attributes)
 
 _fieldAs ($elementCallback, &$index, $attributes=NULL, $prefix=null)
 
 setPropertyValues ($property, $indexValues)
 Defines the values for the fields for a property (or html attribute). More...
 
 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. More...
 
 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)
 

Variables

trait FieldAsTrait
 
 $_speProperties
 

Function Documentation

◆ _addRules()

Ajax\semantic\widgets\base\_addRules ( HtmlFormField  $element,
$attributes 
)
protected

Definition at line 75 of file FieldAsTrait.php.

◆ _applyAttributes()

Ajax\semantic\widgets\base\_applyAttributes ( BaseHtml  $element,
$attributes,
  $index,
  $instance = null 
)
protected
Parameters
HtmlFormField$element
array$attributes

Definition at line 57 of file FieldAsTrait.php.

◆ _buttonAsSubmit()

Ajax\semantic\widgets\base\_buttonAsSubmit ( BaseHtml $button,
  $event,
  $url,
  $responseElement = NULL,
  $parameters = NULL 
)
abstractprotected

Definition at line 117 of file FormTrait.php.

◆ _fieldAs()

Ajax\semantic\widgets\base\_fieldAs (   $elementCallback,
$index,
  $attributes = NULL,
  $prefix = null 
)
abstractprotected

Definition at line 94 of file FieldAsTrait.php.

◆ _getFieldCaption()

Ajax\semantic\widgets\base\_getFieldCaption (   $index)
abstractprotected

◆ _getFieldName()

Ajax\semantic\widgets\base\_getFieldName (   $index)
abstractprotected

◆ _getLabelField()

Ajax\semantic\widgets\base\_getLabelField (   $caption,
  $icon = NULL 
)
private

Definition at line 70 of file FieldAsTrait.php.

◆ _prepareFormFields()

Ajax\semantic\widgets\base\_prepareFormFields ( HtmlFormField $field,
  $name,
$attributes 
)
protected

Definition at line 88 of file FieldAsTrait.php.

◆ fieldAs()

Ajax\semantic\widgets\base\fieldAs (   $index,
  $type,
  $attributes = NULL 
)
abstract

Definition at line 349 of file FieldAsTrait.php.

◆ fieldAsAvatar()

Ajax\semantic\widgets\base\fieldAsAvatar (   $index,
  $attributes = NULL 
)

Definition at line 193 of file FieldAsTrait.php.

◆ fieldAsButton()

Ajax\semantic\widgets\base\fieldAsButton (   $index,
  $cssStyle = NULL,
  $attributes = NULL 
)

Definition at line 374 of file FieldAsTrait.php.

◆ fieldAsCheckbox()

Ajax\semantic\widgets\base\fieldAsCheckbox (   $index,
  $attributes = NULL 
)

Definition at line 292 of file FieldAsTrait.php.

◆ fieldAsDataList()

Ajax\semantic\widgets\base\fieldAsDataList (   $index,
?array  $items = [],
  $attributes = NULL 
)

Definition at line 247 of file FieldAsTrait.php.

◆ fieldAsDataTable()

Ajax\semantic\widgets\base\fieldAsDataTable (   $index,
  $model,
  $instances = null,
  $fields = [],
  $attributes = NULL 
)

Definition at line 381 of file FieldAsTrait.php.

◆ fieldAsDropDown()

Ajax\semantic\widgets\base\fieldAsDropDown (   $index,
  $elements = [],
  $multiple = false,
  $attributes = NULL 
)

Definition at line 302 of file FieldAsTrait.php.

◆ fieldAsElement()

Ajax\semantic\widgets\base\fieldAsElement (   $index,
  $tagName = "div",
  $baseClass = "",
  $attributes = NULL 
)

Definition at line 274 of file FieldAsTrait.php.

◆ fieldAsFile()

Ajax\semantic\widgets\base\fieldAsFile (   $index,
  $attributes = NULL 
)

Definition at line 256 of file FieldAsTrait.php.

◆ fieldAsFlag()

Ajax\semantic\widgets\base\fieldAsFlag (   $index)

Definition at line 177 of file FieldAsTrait.php.

◆ fieldAsHeader()

Ajax\semantic\widgets\base\fieldAsHeader (   $index,
  $niveau = 1,
  $icon = NULL,
  $attributes = NULL 
)

Definition at line 157 of file FieldAsTrait.php.

◆ fieldAsHidden()

Ajax\semantic\widgets\base\fieldAsHidden (   $index,
  $attributes = NULL 
)

Definition at line 283 of file FieldAsTrait.php.

◆ fieldAsIcon()

Ajax\semantic\widgets\base\fieldAsIcon (   $index)

Definition at line 185 of file FieldAsTrait.php.

◆ fieldAsImage()

Ajax\semantic\widgets\base\fieldAsImage (   $index,
  $size = Size::MINI,
  $circular = false 
)

Definition at line 166 of file FieldAsTrait.php.

◆ fieldAsInput()

Ajax\semantic\widgets\base\fieldAsInput (   $index,
  $attributes = NULL 
)

Definition at line 222 of file FieldAsTrait.php.

◆ fieldAsLabel()

Ajax\semantic\widgets\base\fieldAsLabel (   $index,
  $icon = NULL,
  $attributes = NULL 
)

Definition at line 148 of file FieldAsTrait.php.

◆ fieldAsLabeledInput()

Ajax\semantic\widgets\base\fieldAsLabeledInput (   $index,
  $attributes = NULL 
)

Definition at line 229 of file FieldAsTrait.php.

◆ fieldAsLink()

Ajax\semantic\widgets\base\fieldAsLink (   $index,
  $attributes = NULL 
)

Definition at line 318 of file FieldAsTrait.php.

◆ fieldAsList()

Ajax\semantic\widgets\base\fieldAsList (   $index,
  $classNames = "",
  $attributes = NULL 
)

Definition at line 214 of file FieldAsTrait.php.

◆ fieldAsMessage()

Ajax\semantic\widgets\base\fieldAsMessage (   $index,
  $attributes = NULL 
)

Definition at line 310 of file FieldAsTrait.php.

◆ fieldAsProgress()

Ajax\semantic\widgets\base\fieldAsProgress (   $index,
  $label = NULL,
  $attributes = array() 
)

Definition at line 132 of file FieldAsTrait.php.

◆ fieldAsRadio()

Ajax\semantic\widgets\base\fieldAsRadio (   $index,
  $attributes = NULL 
)

Definition at line 201 of file FieldAsTrait.php.

◆ fieldAsRadios()

Ajax\semantic\widgets\base\fieldAsRadios (   $index,
  $elements = [],
  $attributes = NULL 
)

Definition at line 208 of file FieldAsTrait.php.

◆ fieldAsRating()

Ajax\semantic\widgets\base\fieldAsRating (   $index,
  $max = 5,
  $icon = "" 
)

Definition at line 140 of file FieldAsTrait.php.

◆ fieldAsSubmit()

Ajax\semantic\widgets\base\fieldAsSubmit (   $index,
  $cssStyle = NULL,
  $url = NULL,
  $responseElement = NULL,
  $attributes = NULL 
)

Definition at line 366 of file FieldAsTrait.php.

◆ fieldAsTextarea()

Ajax\semantic\widgets\base\fieldAsTextarea (   $index,
  $attributes = NULL 
)

Definition at line 267 of file FieldAsTrait.php.

◆ fieldsAs()

Ajax\semantic\widgets\base\fieldsAs ( array  $types)

Change fields type.

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

Definition at line 331 of file FieldAsTrait.php.

◆ setPropertyValues()

Ajax\semantic\widgets\base\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()

Ajax\semantic\widgets\base\setValueFunction (   $index,
  $callback 
)
abstract

Variable Documentation

◆ $_speProperties

$_speProperties
private

Definition at line 50 of file FieldAsTrait.php.

◆ FieldAsTrait

trait FieldAsTrait
Initial value:
{
abstract protected function _getFieldIdentifier($prefix, $name = "")

Definition at line 38 of file FieldAsTrait.php.