phpMv
-UI toolkit 2.2.5
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Public Member Functions | |
_add_event ($element, $js, $event, $preventDefault=false, $stopPropagation=false, $immediatly=true) | |
_genericCallValue ($jQueryCall, $element='this', $param="", $immediatly=false) | |
Execute a generic jQuery call with a value. More... | |
_genericCallElement ($jQueryCall, $to='this', $element, $immediatly=false) | |
Execute a generic jQuery call with 2 elements. More... | |
addClass ($element='this', $class='', $immediatly=false) | |
add class to element More... | |
after ($to, $element, $immediatly=false) | |
Insert content, specified by the parameter, after each element in the set of matched elements. More... | |
before ($to, $element, $immediatly=false) | |
Insert content, specified by the parameter, before each element in the set of matched elements. More... | |
attr ($element='this', $attributeName, $value="", $immediatly=false) | |
Get or set the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. More... | |
val ($element='this', $value='', $immediatly=false) | |
Get or set the value of the first element in the set of matched elements or set one or more attributes for every matched element. More... | |
html ($element='this', $value='', $immediatly=false) | |
Get or set the html of an attribute for the first element in the set of matched elements. More... | |
animate ($element='this', $params=array(), $speed='', $extra='', $immediatly=false) | |
Outputs a javascript library animate event. More... | |
append ($to, $element, $immediatly=false) | |
Insert content, specified by the parameter $element, to the end of each element in the set of matched elements $to. More... | |
prepend ($to, $element, $immediatly=false) | |
Insert content, specified by the parameter $element, to the beginning of each element in the set of matched elements $to. More... | |
fadeIn ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library hide action. More... | |
fadeOut ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library hide action. More... | |
slideUp ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library slideUp action. More... | |
removeClass ($element='this', $class='', $immediatly=false) | |
Execute a javascript library removeClass action. More... | |
slideDown ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library slideDown action. More... | |
slideToggle ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library slideToggle action. More... | |
hide ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library hide action. More... | |
toggle ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library toggle action. More... | |
toggleClass ($element='this', $class='', $immediatly=false) | |
Execute a javascript library toggle class action. More... | |
trigger ($element='this', $event='click', $immediatly=false) | |
Execute all handlers and behaviors attached to the matched elements for the given event. More... | |
show ($element='this', $speed='', $callback='', $immediatly=false) | |
Execute a javascript library show action. More... | |
sortable ($element, $options=array()) | |
Creates a jQuery sortable. More... | |
tablesorter ($table='', $options='') | |
Table Sorter Plugin. More... | |
condition ($condition, $jsCodeIfTrue, $jsCodeIfFalse=null, $immediatly=false) | |
Allows to attach a condition. More... | |
doJQuery ($element, $jqueryCall, $param="", $jsCallback="") | |
Calls the JQuery callback $someThing on $element with facultative parameter $param. More... | |
doJQueryDeferred ($element, $jqueryCall, $param="", $jsCallback="") | |
Calls the JQuery callback $someThing on $element with facultative parameter $param. More... | |
doJQueryOn ($event, $element, $elementToModify, $jqueryCall, $param="", $parameters=array()) | |
Calls the JQuery callback $jqueryCall on $element with facultative parameter $param in response to an event $event. More... | |
exec ($js, $immediatly=false) | |
Executes the code $js. More... | |
execAtLast ($js) | |
Executes the code $js. More... | |
execOn ($event, $element, $js, $parameters=array()) | |
Executes the javascript code $js when $event fires on $element. More... | |
setJsonToElement ($json, $elementClass="_element", $immediatly=true) | |
setDraggable ($element, $parameters=[]) | |
Sets an element draggable (HTML5 drag and drop) More... | |
asDropZone ($element, $jsCallback="", $parameters=[]) | |
Declares an element as a drop zone (HTML5 drag and drop) More... | |
interval ($jsCode, $time, $globalName=null, $immediatly=true) | |
Calls a function or evaluates an expression at specified intervals (in milliseconds) More... | |
clearInterval ($globalName, $immediatly=true) | |
Clears an existing interval. More... | |
Protected Member Functions | |
_showHideWithEffect ($action, $element='this', $speed='', $callback='', $immediatly=false) | |
show or hide with effect More... | |
Private Member Functions | |
_validate_speed ($speed) | |
Ensures the speed parameter is valid for jQuery. More... | |
_doJQuery ($element, $jqueryCall, $param="", $jsCallback="", $immediatly=false) | |
Call the JQuery method $jqueryCall on $element with parameters $param. More... | |
_doJQueryOn ($event, $element, $elementToModify, $jqueryCall, $param="", $preventDefault=false, $stopPropagation=false, $jsCallback="", $immediatly=true) | |
Definition at line 12 of file JsUtilsActionsTrait.php.
|
abstract |
|
private |
Call the JQuery method $jqueryCall on $element with parameters $param.
string | $element | |
string | $jqueryCall | |
mixed | $param | |
string | $jsCallback | javascript code to execute after the jquery call |
boolean | $immediatly |
Definition at line 422 of file JsUtilsActionsTrait.php.
|
private |
string | $event | |
string | $element | |
string | $elementToModify | |
string | $jqueryCall | |
string | array | $param | |
boolean | $preventDefault | |
boolean | $stopPropagation | |
string | $jsCallback | javascript code to execute after the jquery call |
boolean | $immediatly |
Definition at line 470 of file JsUtilsActionsTrait.php.
_genericCallElement | ( | $jQueryCall, | |
$to = 'this' , |
|||
$element, | |||
$immediatly = false |
|||
) |
Execute a generic jQuery call with 2 elements.
string | $jQueryCall | |
string | $to | |
string | $element | |
boolean | $immediatly | delayed if false |
Definition at line 80 of file JsUtilsActionsTrait.php.
_genericCallValue | ( | $jQueryCall, | |
$element = 'this' , |
|||
$param = "" , |
|||
$immediatly = false |
|||
) |
Execute a generic jQuery call with a value.
string | $jQueryCall | |
string | $element | |
string | $param | |
boolean | $immediatly | delayed if false |
Definition at line 60 of file JsUtilsActionsTrait.php.
|
protected |
show or hide with effect
string | $action | |
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 25 of file JsUtilsActionsTrait.php.
|
private |
Ensures the speed parameter is valid for jQuery.
string | int | $speed |
Definition at line 41 of file JsUtilsActionsTrait.php.
addClass | ( | $element = 'this' , |
|
$class = '' , |
|||
$immediatly = false |
|||
) |
add class to element
string | $element | |
string | $class | to add |
boolean | $immediatly | defers the execution if set to false |
Definition at line 96 of file JsUtilsActionsTrait.php.
after | ( | $to, | |
$element, | |||
$immediatly = false |
|||
) |
Insert content, specified by the parameter, after each element in the set of matched elements.
string | $to | |
string | $element | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 107 of file JsUtilsActionsTrait.php.
animate | ( | $element = 'this' , |
|
$params = array() , |
|||
$speed = '' , |
|||
$extra = '' , |
|||
$immediatly = false |
|||
) |
Outputs a javascript library animate event.
string | $element | element |
array | string | $params | |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $extra | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 171 of file JsUtilsActionsTrait.php.
append | ( | $to, | |
$element, | |||
$immediatly = false |
|||
) |
Insert content, specified by the parameter $element, to the end of each element in the set of matched elements $to.
string | $to | |
string | $element | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 205 of file JsUtilsActionsTrait.php.
asDropZone | ( | $element, | |
$jsCallback = "" , |
|||
$parameters = [] |
|||
) |
Declares an element as a drop zone (HTML5 drag and drop)
string | $element | The element selector |
array | $parameters | default : array("attr"=>"id","stopPropagation"=>false,"immediatly"=>true,"jqueryDone"=>"append") |
string | $jsCallback | the js script to call when element is dropped |
Definition at line 566 of file JsUtilsActionsTrait.php.
attr | ( | $element = 'this' , |
|
$attributeName, | |||
$value = "" , |
|||
$immediatly = false |
|||
) |
Get or set the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
string | $element | |
string | $attributeName | |
string | $value | |
boolean | $immediatly | delayed if false |
Definition at line 129 of file JsUtilsActionsTrait.php.
before | ( | $to, | |
$element, | |||
$immediatly = false |
|||
) |
Insert content, specified by the parameter, before each element in the set of matched elements.
string | $to | |
string | $element | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 118 of file JsUtilsActionsTrait.php.
clearInterval | ( | $globalName, | |
$immediatly = true |
|||
) |
Clears an existing interval.
string | $globalName | The interval global name |
boolean | $immediatly | delayed if false |
Definition at line 602 of file JsUtilsActionsTrait.php.
condition | ( | $condition, | |
$jsCodeIfTrue, | |||
$jsCodeIfFalse = null , |
|||
$immediatly = false |
|||
) |
Allows to attach a condition.
string | $condition | |
string | $jsCodeIfTrue | |
string | $jsCodeIfFalse | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 402 of file JsUtilsActionsTrait.php.
doJQuery | ( | $element, | |
$jqueryCall, | |||
$param = "" , |
|||
$jsCallback = "" |
|||
) |
Calls the JQuery callback $someThing on $element with facultative parameter $param.
string | $element | the element |
string | $jqueryCall | the JQuery callback |
mixed | $param | array or string parameters |
string | $jsCallback | javascript code to execute after the jquery call |
Definition at line 441 of file JsUtilsActionsTrait.php.
doJQueryDeferred | ( | $element, | |
$jqueryCall, | |||
$param = "" , |
|||
$jsCallback = "" |
|||
) |
Calls the JQuery callback $someThing on $element with facultative parameter $param.
string | $element | the element |
string | $jqueryCall | the JQuery callback |
mixed | $param | array or string parameters |
string | $jsCallback | javascript code to execute after the jquery call |
Definition at line 453 of file JsUtilsActionsTrait.php.
doJQueryOn | ( | $event, | |
$element, | |||
$elementToModify, | |||
$jqueryCall, | |||
$param = "" , |
|||
$parameters = array() |
|||
) |
Calls the JQuery callback $jqueryCall on $element with facultative parameter $param in response to an event $event.
string | $event | |
string | $element | |
string | $elementToModify | |
string | $jqueryCall | |
string | $param | |
array | $parameters | default : array("preventDefault"=>false,"stopPropagation"=>false,"jsCallback"=>'',"immediatly"=>true) |
Definition at line 483 of file JsUtilsActionsTrait.php.
exec | ( | $js, | |
$immediatly = false |
|||
) |
Executes the code $js.
string | $js | Code to execute |
boolean | $immediatly | delayed if false |
Definition at line 498 of file JsUtilsActionsTrait.php.
execAtLast | ( | $js | ) |
Executes the code $js.
string | $js | Code to execute |
boolean | $immediatly | delayed if false |
Definition at line 511 of file JsUtilsActionsTrait.php.
execOn | ( | $event, | |
$element, | |||
$js, | |||
$parameters = array() |
|||
) |
Executes the javascript code $js when $event fires on $element.
string | $event | |
string | $element | |
string | $js | Code to execute |
array | $parameters | default : array("preventDefault"=>false,"stopPropagation"=>false,"immediatly"=>true) |
Definition at line 525 of file JsUtilsActionsTrait.php.
fadeIn | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library hide action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 229 of file JsUtilsActionsTrait.php.
fadeOut | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library hide action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 242 of file JsUtilsActionsTrait.php.
hide | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library hide action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 306 of file JsUtilsActionsTrait.php.
html | ( | $element = 'this' , |
|
$value = '' , |
|||
$immediatly = false |
|||
) |
Get or set the html of an attribute for the first element in the set of matched elements.
string | $element | |
string | $value | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 157 of file JsUtilsActionsTrait.php.
interval | ( | $jsCode, | |
$time, | |||
$globalName = null , |
|||
$immediatly = true |
|||
) |
Calls a function or evaluates an expression at specified intervals (in milliseconds)
string | $jsCode | The code to execute |
int | $time | The time interval in milliseconds |
string | $globalName | The global name of the interval, used to clear it |
boolean | $immediatly | delayed if false |
Definition at line 584 of file JsUtilsActionsTrait.php.
prepend | ( | $to, | |
$element, | |||
$immediatly = false |
|||
) |
Insert content, specified by the parameter $element, to the beginning of each element in the set of matched elements $to.
string | $to | |
string | $element | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 216 of file JsUtilsActionsTrait.php.
removeClass | ( | $element = 'this' , |
|
$class = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library removeClass action.
string | $element | element |
string | $class | Class to add |
boolean | $immediatly | defers the execution if set to false |
Definition at line 267 of file JsUtilsActionsTrait.php.
setDraggable | ( | $element, | |
$parameters = [] |
|||
) |
Sets an element draggable (HTML5 drag and drop)
string | $element | The element selector |
array | $parameters | default : array("attr"=>"id","preventDefault"=>false,"stopPropagation"=>false,"immediatly"=>true) |
Definition at line 553 of file JsUtilsActionsTrait.php.
setJsonToElement | ( | $json, | |
$elementClass = "_element" , |
|||
$immediatly = true |
|||
) |
Definition at line 534 of file JsUtilsActionsTrait.php.
show | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library show action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 359 of file JsUtilsActionsTrait.php.
slideDown | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library slideDown action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 280 of file JsUtilsActionsTrait.php.
slideToggle | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library slideToggle action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 293 of file JsUtilsActionsTrait.php.
slideUp | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library slideUp action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 255 of file JsUtilsActionsTrait.php.
sortable | ( | $element, | |
$options = array() |
|||
) |
Creates a jQuery sortable.
string | $element | |
array | $options |
Definition at line 370 of file JsUtilsActionsTrait.php.
tablesorter | ( | $table = '' , |
|
$options = '' |
|||
) |
Table Sorter Plugin.
string | $table | table name |
string | $options | plugin location |
Definition at line 391 of file JsUtilsActionsTrait.php.
toggle | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library toggle action.
string | $element | element |
string | $speed | One of 'slow', 'normal', 'fast', or time in milliseconds |
string | $callback | Javascript callback function |
boolean | $immediatly | defers the execution if set to false |
Definition at line 319 of file JsUtilsActionsTrait.php.
toggleClass | ( | $element = 'this' , |
|
$class = '' , |
|||
$immediatly = false |
|||
) |
Execute a javascript library toggle class action.
string | $element | element |
string | $class | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 331 of file JsUtilsActionsTrait.php.
trigger | ( | $element = 'this' , |
|
$event = 'click' , |
|||
$immediatly = false |
|||
) |
Execute all handlers and behaviors attached to the matched elements for the given event.
string | $element | |
string | $event | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 341 of file JsUtilsActionsTrait.php.
val | ( | $element = 'this' , |
|
$value = '' , |
|||
$immediatly = false |
|||
) |
Get or set the value of the first element in the set of matched elements or set one or more attributes for every matched element.
string | $element | |
string | $value | |
boolean | $immediatly | defers the execution if set to false |
Definition at line 147 of file JsUtilsActionsTrait.php.