|
phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Inheritance diagram for Widget:Public Member Functions | ||||
| __construct ($identifier, $model, $modelInstance=NULL) | ||||
| show ($modelInstance) | ||||
| getModel () | ||||
| setModel ($_model) | ||||
| getInstanceViewer () | ||||
| setInstanceViewer ($_instanceViewer) | ||||
| getHtmlComponent () | ||||
| setAttached ($value=true) | ||||
| afterCompile ($index, $callback) | ||||
| Associates a $callback function after the compilation of the field at $index position The $callback function can take the following arguments : $field=>the compiled field, $instance : the active instance of the object, $index: the field position. | ||||
| setColor ($color) | ||||
| setCaptions ($captions) | ||||
| setCaption ($index, $caption) | ||||
| setFields ($fields) | ||||
| addField ($field, $key=null) | ||||
| addFields ($fields) | ||||
| countFields () | ||||
| addMessage ($attributes=NULL, $fieldName="message") | ||||
| addErrorMessage () | ||||
| insertField ($index, $field, $key=null) | ||||
| insertInField ($index, $field, $key=null) | ||||
| setValueFunction ($index, $callback) | ||||
| Defines the function which displays the field value. | ||||
| setIdentifierFunction ($callback) | ||||
| getToolbar () | ||||
| addInToolbar ($element, $callback=NULL) | ||||
| Adds a new element in toolbar. | ||||
| addItemInToolbar ($caption, $icon=NULL, $callback=NULL) | ||||
| addItemsInToolbar (array $items, $callback=NULL) | ||||
| addDropdownInToolbar ($value, $items, $callback=NULL) | ||||
| addButtonInToolbar ($caption, $cssStyle=null, $callback=NULL) | ||||
| addButtonsInToolbar (array $captions, $asIcon=false, $callback=NULL) | ||||
| addLabelledIconButtonInToolbar ($caption, $icon, $before=true, $labeled=false) | ||||
| addSubmitInToolbar ($identifier, $value, $cssStyle=NULL, $url=NULL, $responseElement=NULL, $parameters=NULL) | ||||
| setCaptionCallback ($captionCallback) | ||||
| Defines a callback function to call for modifying captions function parameters 0are. | ||||
| setEdition ($_edition=true) | ||||
| Makes the input fields editable. | ||||
| setDefaultValueFunction ($defaultValueFunction) | ||||
| Defines the default function which displays fields value. | ||||
| getDefaultValueFunction () | ||||
| jsDisabled ($disable=true) | ||||
| addEditButtonInToolbar ($caption, $callback=NULL) | ||||
| setToolbar (HtmlMenu $_toolbar) | ||||
| setToolbarPosition ($_toolbarPosition) | ||||
| getForm () | ||||
| run (JsUtils $js) | ||||
| ||||
| setValidationParams (array $_validationParams) | ||||
| Sets the parameters for the Form validation (on, inline, delay...) | ||||
| moveFieldTo ($from, $to) | ||||
| swapFields ($index1, $index2) | ||||
| removeField ($index) | ||||
| asModal ($header=null) | ||||
| addToProperty ($name, $value, $separator=" ") | ||||
| getModelInstance () | ||||
| hasRules () | ||||
Public Member Functions inherited from HtmlDoubleElement | ||||
| __construct ($identifier, $tagName="p") | ||||
| setContent ($content) | ||||
| getContent () | ||||
| addContent ($content, $before=false) | ||||
| setValue ($value) | ||||
| wrapContent ($before, $after="") | ||||
| wrapWith (HtmlDoubleElement $container) | ||||
| Wraps the element with a container. | ||||
| getContentInstances ($class) | ||||
| asLink ($href=NULL, $target=NULL) | ||||
| Transforms the element into a link. | ||||
| getTextContent () | ||||
| asEditable (HtmlFormField $field, $asForm=false, $setValueProperty="val()") | ||||
Public Member Functions inherited from HtmlSingleElement | ||||
| setClass ($classNames) | ||||
| addClass ($classNames) | ||||
| setRole ($value) | ||||
| setTitle ($value) | ||||
| setStyle ($value) | ||||
| fromArray ($array) | ||||
| setSize ($size) | ||||
Public Member Functions inherited from BaseHtml | ||||
| getTagName () | ||||
| setTagName ($tagName) | ||||
| fromDatabaseObjects ($objects, $function) | ||||
| fromDatabaseObject ($object, $function) | ||||
| wrap ($before, $after="") | ||||
| getElementById ($identifier, $elements) | ||||
| getBsComponent () | ||||
| setBsComponent ($bsComponent) | ||||
| compile (JsUtils $js=NULL, &$view=NULL) | ||||
| setDraggable ($attr="id", $dropZone=null, $parameters=[]) | ||||
| Sets the element draggable, and eventualy defines the dropzone (HTML5 drag and drop) | ||||
| asDropZone ($jsCallback="", $jqueryDone="append", $parameters=[]) | ||||
| Declares the element as a drop zone (HTML5 drag and drop) | ||||
| asFileDropZone ($responseElement=null, $url=null, $progress=null, $jsCallback="", $parameters=[]) | ||||
| Declares the element as a drop zone for file uploading (HTML5 drag and drop) | ||||
| __toString () | ||||
| onPostCompile ($callback) | ||||
| onPreCompile ($callback) | ||||
Public Member Functions inherited from BaseWidget | ||||
| __construct ($identifier) | ||||
| getIdentifier () | ||||
| setIdentifier ($identifier) | ||||
| getLibraryId () | ||||
| setLibraryId ($_libraryId) | ||||
Public Member Functions inherited from BaseHtmlEventsTrait | ||||
| addEvent ($event, $jsCode, $stopPropagation=false, $preventDefault=false) | ||||
| trigger ($event, $params="[]") | ||||
| jsTrigger ($event, $params="[this]") | ||||
| _addEvent ($event, $jsCode) | ||||
| on ($event, $jsCode, $stopPropagation=false, $preventDefault=false) | ||||
| onClick ($jsCode, $stopPropagation=false, $preventDefault=true) | ||||
| setClick ($jsCode) | ||||
| onCreate ($jsCode) | ||||
| addEventsOnRun (JsUtils $js=NULL) | ||||
| _ajaxOn ($operation, $event, $url, $responseElement="", $parameters=array()) | ||||
| getOn ($event, $url, $responseElement="", $parameters=array()) | ||||
| Performs a get to $url on the event $event on $element and display it in $responseElement. | ||||
| getOnClick ($url, $responseElement="", $parameters=array()) | ||||
| Performs a get to $url on the click event on $element and display it in $responseElement. | ||||
| postOn ($event, $url, $params="{}", $responseElement="", $parameters=array()) | ||||
| Performs a post to $url on the event $event on $element and display it in $responseElement. | ||||
| postOnClick ($url, $params="{}", $responseElement="", $parameters=array()) | ||||
| Performs a post to $url on the click event on $element and display it in $responseElement. | ||||
| postFormOn ($event, $url, $form, $responseElement="", $parameters=array()) | ||||
| Performs a post form with ajax. | ||||
| postFormOnClick ($url, $form, $responseElement="", $parameters=array()) | ||||
| Performs a post form with ajax on click. | ||||
| jsDoJquery ($jqueryCall, $param="") | ||||
| executeOnRun ($jsCode) | ||||
| jsHtml ($content="") | ||||
| jsShow () | ||||
| jsHide () | ||||
| jsToggle ($value) | ||||
| getEvents () | ||||
Public Member Functions inherited from BaseHtmlPropertiesTrait | ||||
| getProperties () | ||||
| setProperties ($properties) | ||||
| setProperty ($name, $value) | ||||
| getProperty ($name) | ||||
| addProperties ($properties) | ||||
| removePropertyValue ($name, $value) | ||||
| addToPropertyCtrl ($name, $value, $typeCtrl) | ||||
| addToPropertyCtrlCheck ($name, $value, $typeCtrl) | ||||
| removeProperty ($name) | ||||
| propertyContains ($propertyName, $value) | ||||
Public Member Functions inherited from FieldAsTrait | ||||
| 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) | ||||
Public Member Functions inherited from FormTrait | ||||
| setLoading () | ||||
| setState ($state) | ||||
| jsState ($state) | ||||
| submitOn ($event, $identifierOrElement, $url, $responseElement, $parameters=NULL) | ||||
| submitOnClick ($identifier, $url, $responseElement, $parameters=NULL) | ||||
| addSubmit ($identifier, $value, $cssStyle=NULL, $url=NULL, $responseElement=NULL, $parameters=NULL) | ||||
| setSubmitParams ($url, $responseElement=NULL, $parameters=NULL) | ||||
| addReset ($identifier, $value, $cssStyle=NULL) | ||||
| onValid ($jsCode) | ||||
| Callback on each valid field. | ||||
| onSuccess ($jsCode) | ||||
| Callback if a form is all valid. | ||||
| addExtraFieldRules ($fieldname, $rules) | ||||
| addExtraFieldRule ($fieldname, $type, $prompt=NULL, $value=NULL) | ||||
| setOptional ($fieldname, $optional=true) | ||||
| setActionTarget (string $action, string $target) | ||||
Public Member Functions inherited from BaseHooksTrait | ||||
| hookExists ($hookKey) | ||||
| getHook ($hookKey) | ||||
| addHook ($hookKey, $callable) | ||||
| Adds a new Hook. | ||||
| execHook ($hookKey,... $variables) | ||||
| Executes the hook with key $hookKey. | ||||
Protected Member Functions | |
| _init ($instanceViewer, $contentKey, $content, $edition) | |
| _getIndex ($fieldName) | |
| _getFieldIdentifier ($prefix, $name="") | |
| _getFieldName ($index) | |
| _getFieldCaption ($index) | |
| _setToolbarPosition ($table, $captions=NULL) | |
| runForm (JsUtils $js) | |
| _compileForm () | |
Protected Member Functions inherited from HtmlDoubleElement | |
| _getContentInstances ($class, $content) | |
| compile_once (\Ajax\JsUtils $js=NULL, &$view=NULL) | |
| {} | |
Protected Member Functions inherited from BaseHtml | |
| getTemplate (JsUtils $js=NULL, $view=null) | |
| ctrl ($name, $value, $typeCtrl) | |
| setMemberCtrl (&$name, $value, $typeCtrl) | |
| addToMemberUnique (&$name, $value, $typeCtrl, $separator=" ") | |
| addToMemberCtrl (&$name, $value, $typeCtrl, $separator=" ") | |
| addToMember (&$name, $value, $separator=' ') | |
| removeOldValues (&$oldValue, $allValues) | |
| _getElementBy ($callback, $elements) | |
| setWrapBefore ($wrapBefore) | |
| setWrapAfter ($wrapAfter) | |
| compile_once (JsUtils $js=NULL, &$view=NULL) | |
Protected Member Functions inherited from BaseWidget | |
| cleanIdentifier ($id) | |
Protected Member Functions inherited from BaseHtmlEventsTrait | |
| _eventsOnCreate (JsUtils $js=NULL) | |
Protected Member Functions inherited from BaseHtmlPropertiesTrait | |
| removePropertyValues ($name, $values) | |
| addToPropertyUnique ($name, $value, $typeCtrl) | |
| setPropertyCtrl ($name, $value, $typeCtrl) | |
| getElementByPropertyValue ($propertyName, $value, $elements) | |
Protected Member Functions inherited from FieldAsTrait | |
| _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) | |
Protected Member Functions inherited from FormTrait | |
| addCompoValidation (Form $compo, HtmlFormField $field) | |
| addExtraCompoValidation (Form $compo, FieldValidation $validation) | |
| _runValidationParams (Form &$compo, JsUtils $js=NULL) | |
| _compileAjaxSubmit ($ajaxSubmit, JsUtils $js=null) | |
| _buttonAsSubmit (BaseHtml &$button, $event, $url, $responseElement=NULL, $parameters=NULL) | |
Protected Attributes | |
| $_model | |
| $_modelInstance | |
| $_instanceViewer | |
| $_toolbar | |
| $_toolbarPosition | |
| $_edition | |
| $_form | |
| $_generated | |
| $_runned | |
| $_hasRules | |
Protected Attributes inherited from HtmlDoubleElement | |
| $content | |
| $wrapContentBefore = "" | |
| $wrapContentAfter = "" | |
| $_editableContent | |
Protected Attributes inherited from BaseHtml | |
| $_template | |
| $tagName | |
| $_wrapBefore = array() | |
| $_wrapAfter = array() | |
| $_bsComponent | |
| $_compiled = false | |
| $_runned = false | |
| $_postCompile | |
| $_preCompile | |
Protected Attributes inherited from BaseWidget | |
| $identifier | |
| $_identifier | |
| $_libraryId | |
| $_self | |
Protected Attributes inherited from BaseHtmlEventsTrait | |
| $_events =array () | |
Protected Attributes inherited from BaseHtmlPropertiesTrait | |
| $properties =array () | |
Protected Attributes inherited from BaseHooksTrait | |
| $_hooks =[] | |
Definition at line 22 of file Widget.php.
| __construct | ( | $identifier, | |
| $model, | |||
$modelInstance = NULL |
|||
| ) |
Reimplemented in DataTable, and JsonDataTable.
Definition at line 68 of file Widget.php.
|
protected |
Definition at line 480 of file Widget.php.
|
protected |
Reimplemented from FieldAsTrait.
Reimplemented in DataElement, and DataTable.
Definition at line 113 of file Widget.php.
|
protected |
Reimplemented from FieldAsTrait.
Reimplemented in DataElement, and DataForm.
Definition at line 105 of file Widget.php.
|
protected |
Reimplemented from FieldAsTrait.
Reimplemented in DataElement, and DataTable.
Definition at line 109 of file Widget.php.
|
protected |
| int | string | $fieldName |
Reimplemented in BusinessForm.
Definition at line 96 of file Widget.php.
|
protected |
Definition at line 81 of file Widget.php.
|
abstractprotected |
Reimplemented in DataElement, DataForm, and DataTable.
| addButtonInToolbar | ( | $caption, | |
$cssStyle = null, |
|||
$callback = NULL |
|||
| ) |
| string | $caption | |
| string | $cssStyle | |
| callable | $callback | function($element) |
Definition at line 342 of file Widget.php.
| addButtonsInToolbar | ( | array | $captions, |
$asIcon = false, |
|||
$callback = NULL |
|||
| ) |
| array | $captions | |
| boolean | $asIcon | |
| callable | $callback | function($element) |
Definition at line 355 of file Widget.php.
| addDropdownInToolbar | ( | $value, | |
| $items, | |||
$callback = NULL |
|||
| ) |
| mixed | $value | |
| array | $items | |
| callable | $callback | function($element) |
Definition at line 326 of file Widget.php.
| addEditButtonInToolbar | ( | $caption, | |
$callback = NULL |
|||
| ) |
| string | $caption | |
| callable | $callback | function($element) |
Definition at line 439 of file Widget.php.
| addErrorMessage | ( | ) |
Reimplemented from FormTrait.
Definition at line 207 of file Widget.php.
| addField | ( | $field, | |
$key = null |
|||
| ) |
Definition at line 187 of file Widget.php.
| addFields | ( | $fields | ) |
Definition at line 192 of file Widget.php.
| addInToolbar | ( | $element, | |
$callback = NULL |
|||
| ) |
Adds a new element in toolbar.
| mixed | $element | |
| callable | $callback | function to call on $element |
Definition at line 268 of file Widget.php.
| addItemInToolbar | ( | $caption, | |
$icon = NULL, |
|||
$callback = NULL |
|||
| ) |
| string | $caption | |
| string | $icon | |
| callable | $callback | function($element) |
Definition at line 291 of file Widget.php.
| addItemsInToolbar | ( | array | $items, |
$callback = NULL |
|||
| ) |
| array | $items | |
| callable | $callback | function($element) |
Definition at line 305 of file Widget.php.
| addLabelledIconButtonInToolbar | ( | $caption, | |
| $icon, | |||
$before = true, |
|||
$labeled = false |
|||
| ) |
| string | $caption | |
| string | $icon | |
| boolean | $before | |
| boolean | $labeled |
Definition at line 368 of file Widget.php.
| addMessage | ( | $attributes = NULL, |
|
$fieldName = "message" |
|||
| ) |
Definition at line 201 of file Widget.php.
| addSubmitInToolbar | ( | $identifier, | |
| $value, | |||
$cssStyle = NULL, |
|||
$url = NULL, |
|||
$responseElement = NULL, |
|||
$parameters = NULL |
|||
| ) |
Definition at line 374 of file Widget.php.
| addToProperty | ( | $name, | |
| $value, | |||
$separator = " " |
|||
| ) |
| string | $name | |
| mixed | $value | |
| string | $separator |
Reimplemented from BaseHtmlPropertiesTrait.
Definition at line 529 of file Widget.php.
| afterCompile | ( | $index, | |
| $callback | |||
| ) |
Associates a $callback function after the compilation of the field at $index position The $callback function can take the following arguments : $field=>the compiled field, $instance : the active instance of the object, $index: the field position.
| int | $index | postion of the compiled field |
| callable | $callback | function called after the field compilation |
Reimplemented in DataTable.
Definition at line 160 of file Widget.php.
| asModal | ( | $header = null | ) |
Definition at line 520 of file Widget.php.
| countFields | ( | ) |
Definition at line 197 of file Widget.php.
| getDefaultValueFunction | ( | ) |
Definition at line 419 of file Widget.php.
| getForm | ( | ) |
Reimplemented from FormTrait.
Reimplemented in DataForm.
Definition at line 457 of file Widget.php.
|
abstract |
Reimplemented in DataElement, DataForm, and DataTable.
| getInstanceViewer | ( | ) |
Definition at line 135 of file Widget.php.
| getModel | ( | ) |
Definition at line 126 of file Widget.php.
| getModelInstance | ( | ) |
Definition at line 537 of file Widget.php.
| getToolbar | ( | ) |
Definition at line 253 of file Widget.php.
| hasRules | ( | ) |
Definition at line 545 of file Widget.php.
| insertField | ( | $index, | |
| $field, | |||
$key = null |
|||
| ) |
Definition at line 213 of file Widget.php.
| insertInField | ( | $index, | |
| $field, | |||
$key = null |
|||
| ) |
Definition at line 219 of file Widget.php.
| jsDisabled | ( | $disable = true | ) |
| moveFieldTo | ( | $from, | |
| $to | |||
| ) |
Definition at line 502 of file Widget.php.
| removeField | ( | $index | ) |
Reimplemented in BusinessForm.
Definition at line 512 of file Widget.php.
| run | ( | JsUtils | $js | ) |
| JsUtils | $js |
Reimplemented from HtmlDoubleElement.
Reimplemented in DataElement, DataForm, and DataTable.
Definition at line 465 of file Widget.php.
|
protected |
Definition at line 472 of file Widget.php.
| setAttached | ( | $value = true | ) |
Reimplemented from FormTrait.
Definition at line 146 of file Widget.php.
| setCaption | ( | $index, | |
| $caption | |||
| ) |
Definition at line 177 of file Widget.php.
| setCaptionCallback | ( | $captionCallback | ) |
Defines a callback function to call for modifying captions function parameters 0are.
$captions: the captions to modify and $instance: the active model instance
| callable | $captionCallback |
Definition at line 387 of file Widget.php.
| setCaptions | ( | $captions | ) |
Definition at line 172 of file Widget.php.
| setColor | ( | $color | ) |
Definition at line 168 of file Widget.php.
| setDefaultValueFunction | ( | $defaultValueFunction | ) |
Defines the default function which displays fields value.
| callable | $defaultValueFunction | function parameters are : $name : the field name, $value : the field value ,$index : the field index, $instance : the active instance of model |
Definition at line 410 of file Widget.php.
| setEdition | ( | $_edition = true | ) |
Makes the input fields editable.
| boolean | $_edition |
Definition at line 398 of file Widget.php.
| setFields | ( | $fields | ) |
Definition at line 182 of file Widget.php.
| setIdentifierFunction | ( | $callback | ) |
Definition at line 244 of file Widget.php.
| setInstanceViewer | ( | $_instanceViewer | ) |
Definition at line 139 of file Widget.php.
| setModel | ( | $_model | ) |
Definition at line 130 of file Widget.php.
| setToolbar | ( | HtmlMenu | $_toolbar | ) |
Definition at line 447 of file Widget.php.
| setToolbarPosition | ( | $_toolbarPosition | ) |
Definition at line 452 of file Widget.php.
| setValidationParams | ( | array | $_validationParams | ) |
Sets the parameters for the Form validation (on, inline, delay...)
| array | $_validationParams | example : ["on"=>"blur","inline"=>true] |
Definition at line 497 of file Widget.php.
| setValueFunction | ( | $index, | |
| $callback | |||
| ) |
Defines the function which displays the field value.
| int | string | $index | index or name of the field to display |
| callable | $callback | function parameters are : $value : the field value, $instance : the active instance of model, $fieldIndex : the field index, $rowIndex : the row index |
Reimplemented from FieldAsTrait.
Definition at line 236 of file Widget.php.
| show | ( | $modelInstance | ) |
Reimplemented in DataTable.
Definition at line 119 of file Widget.php.
| swapFields | ( | $index1, | |
| $index2 | |||
| ) |
Definition at line 506 of file Widget.php.
|
protected |
Definition at line 54 of file Widget.php.
|
protected |
Definition at line 60 of file Widget.php.
|
protected |
Definition at line 62 of file Widget.php.
|
protected |
Definition at line 66 of file Widget.php.
|
protected |
Definition at line 36 of file Widget.php.
|
protected |
Definition at line 28 of file Widget.php.
|
protected |
Definition at line 30 of file Widget.php.
|
protected |
Definition at line 64 of file Widget.php.
|
protected |
Definition at line 42 of file Widget.php.
|
protected |
Definition at line 48 of file Widget.php.