phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Functions | |
_showHideWithEffect ($action, $element='this', $speed='', $callback='', $immediatly=false) | |
show or hide with effect More... | |
_validate_speed ($speed) | |
Ensures the speed parameter is valid for jQuery. More... | |
_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='id', $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="", $immediatly=false) | |
Call the JQuery method $jqueryCall on $element with parameters $param. 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="", $preventDefault=false, $stopPropagation=false, $jsCallback="", $immediatly=true) | |
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... | |
counter ($counterSelector, $value=0, $limit=0, $globalName=null, $countDown=true, $immediatly=true) | |
Associates a counter to the element designated by $counterSelector Triggers the events counter-start and counter-end on finished with the parameters value and limit. More... | |
counterOn ($element, $event, $counterSelector, $value=0, $limit=0, $globalName=null, $countDown=true) | |
Associates a counter to the element designated by $counterSelector when $event is triggered on $element. More... | |
activateLink ($target, $property='href', $href=null) | |
Activates an element if it is active (add the class active) More... | |
_activateLink ($target, $property='href', $href=null) | |
Returns the javascript code for activate an element if it is active (add the class active) More... | |
getUrl ($url) | |
_add_event ($element, $js, $event, $preventDefault=false, $stopPropagation=false, $immediatly=true, $listenerOn=false) | |
_ajax ($method, $url, $responseElement='', $parameters=[]) | |
createAjaxParameters (&$original, $parameters) | |
implodeAjaxParameters ($ajaxParameters) | |
_addJsCondition ($jsCondition, $jsSource) | |
_getAjaxUrl ($url, $attr) | |
onPopstate () | |
autoActiveLinks ($previousURL="window.location.href") | |
_getOnAjaxDone ($responseElement, $jqueryDone, $ajaxTransition, $jsCallback, $history=null) | |
removeLoader ($hasLoader) | |
_getResponseElement ($responseElement) | |
_getFormElement ($formElement) | |
_correctAjaxUrl ($url) | |
static | _correctParams ($params, $ajaxParameters=[]) |
static | _implodeParams ($parameters) |
addLoading (&$retour, $responseElement, $ajaxLoader=null) | |
addResponseLoading (&$retour, $responseElement, $ajaxLoader=null) | |
setAjaxDataCall ($params) | |
setDefaultParameters (&$parameters, $default) | |
setAjaxLoader ($loader) | |
_get ($url, $responseElement='', $parameters=[]) | |
Performs an ajax GET request. More... | |
get ($url, $responseElement='', $parameters=[]) | |
Performs an ajax GET request. More... | |
ajax ($method, $url, $responseElement='', $parameters=[]) | |
Performs an ajax request. More... | |
ajaxInterval ($method, $url, $interval, $globalName=null, $responseElement='', $parameters=[], $immediatly=true) | |
Executes an ajax query at regular intervals. More... | |
ajaxDeferred ($method, $url, $responseElement='', $parameters=[]) | |
Performs a deferred ajax request. More... | |
_json ($url, $method="get", $parameters=[]) | |
Performs an ajax request and receives the JSON data types by assigning DOM elements with the same name. More... | |
json ($url, $method="get", $parameters=[]) | |
Performs an ajax request and receives the JSON data types by assigning DOM elements with the same name. More... | |
jsonOn ($event, $element, $url, $method='get', $parameters=array()) | |
Makes an ajax request and receives the JSON data types by assigning DOM elements with the same name when $event fired on $element. More... | |
jsonDeferred ($url, $method='get', $parameters=[]) | |
Prepares an ajax request delayed and receives the JSON data types by assigning DOM elements with the same name. More... | |
_jsonArray ($maskSelector, $url, $method='get', $parameters=[]) | |
Performs an ajax request and receives the JSON array data types by assigning DOM elements with the same name. More... | |
jsonArray ($maskSelector, $url, $method='get', $parameters=[]) | |
Performs an ajax request and receives the JSON array data types by assigning DOM elements with the same name. More... | |
jsonArrayDeferred ($maskSelector, $url, $method='get', $parameters=[]) | |
Peforms an ajax request delayed and receives a JSON array data types by copying and assigning them to the DOM elements with the same name. More... | |
jsonArrayOn ($event, $element, $maskSelector, $url, $method='get', $parameters=array()) | |
Performs an ajax request and receives the JSON array data types by assigning DOM elements with the same name when $event fired on $element. More... | |
getDeferred ($url, $responseElement="", $parameters=[]) | |
Prepares a Get ajax request for using on an event. More... | |
getOn ($event, $element, $url, $responseElement="", $parameters=array()) | |
Performs a get to $url on the event $event on $element and display it in $responseElement. More... | |
ajaxOn ($event, $element, $url, $responseElement='', $parameters=array()) | |
Performs an ajax request to $url on the event $event on $element and display it in $responseElement. More... | |
ajaxOnClick ($element, $url, $responseElement='', $parameters=array()) | |
Performs a get to $url on the click event on $element and display it in $responseElement. More... | |
getOnClick ($element, $url, $responseElement='', $parameters=array()) | |
Performs a get to $url on the click event on $element and display it in $responseElement. More... | |
getHref ($element, $responseElement="", $parameters=array()) | |
Uses an hyperlink to make an ajax get request. More... | |
postHref ($element, $responseElement="", $parameters=array()) | |
Uses an hyperlink to make an ajax get request. More... | |
postFormAction ($element, $responseElement="", $parameters=array()) | |
Uses a form action to make an ajax post request. More... | |
_post ($url, $params='{}', $responseElement='', $parameters=[]) | |
post ($url, $params="{}", $responseElement="", $parameters=[]) | |
Makes an ajax post. More... | |
postDeferred ($url, $params="{}", $responseElement="", $parameters=[]) | |
Prepares a delayed ajax POST to use on an event. More... | |
postOn ($event, $element, $url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the event $event fired on $element and pass the parameters $params Display the result in $responseElement. More... | |
postOnClick ($element, $url, $params='{}', $responseElement='', $parameters=array()) | |
Performs a post to $url on the click event fired on $element and pass the parameters $params Display the result in $responseElement. More... | |
_postForm ($url, $form, $responseElement, $parameters=[]) | |
postForm ($url, $form, $responseElement, $parameters=[]) | |
Performs a post form with ajax. More... | |
postFormDeferred ($url, $form, $responseElement, $parameters=[]) | |
Performs a delayed post form with ajax For use on an event. More... | |
postFormOn ($event, $element, $url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax in response to an event $event on $element display the result in $responseElement. More... | |
postFormOnClick ($element, $url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax in response to the click event on $element display the result in $responseElement. More... | |
addCsrf ($name='csrf-token') | |
blur ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library blur event. More... | |
change ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library change event. More... | |
click ($element='this', $js='', $ret_false=TRUE, $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library click event. More... | |
contextmenu ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library contextmenu event. More... | |
dblclick ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library dblclick event. More... | |
error ($element='this', $js='') | |
Outputs a javascript library error event. More... | |
focus ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library focus event. More... | |
hover ($element='this', $over='', $out='') | |
Outputs a javascript library hover event. More... | |
keydown ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library keydown event. More... | |
keypress ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library keypress event. More... | |
keyup ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library keydown event. More... | |
load ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library load event. More... | |
mousedown ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library mousedown event. More... | |
mouseout ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library mouseout event. More... | |
mouseleave ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library mouseleave event. More... | |
mouseenter ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library mouseenter event. More... | |
mouseover ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library mouseover event. More... | |
mouseup ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library mouseup event. More... | |
unload ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library unload event. More... | |
resize ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library resize event. More... | |
scroll ($element='this', $js='', $preventDefault=false, $stopPropagation=false, $listenerOn=false) | |
Outputs a javascript library scroll event. More... | |
_addToCompile ($jsScript) | |
_compileLibrary (BaseGui $library, &$view=NULL) | |
defer ($script) | |
ready ($script) | |
minify ($input) | |
_open_script ($src='') | |
Outputs an opening <script> More... | |
_close_script ($extra="\) | |
Outputs an closing </script> More... | |
conflict () | |
addToCompile ($jsScript) | |
Variables | |
trait | JsUtilsActionsTrait |
trait | JsUtilsAjaxTrait |
$ajaxLoader = "<div class=\"ui active centered inline text loader\">Loading</div>" | |
trait | JsUtilsEventsTrait |
trait | JsUtilsInternalTrait |
$jquery_code_for_compile_at_last = array() | |
Ajax\common\traits\_activateLink | ( | $target, | |
$property = 'href' , |
|||
$href = null |
|||
) |
Returns the javascript code for activate an element if it is active (add the class active)
string | $target | the container element |
string | $property | default: href |
string | $href | the active href (if null, window.location.href is used) |
Definition at line 820 of file JsUtilsActionsTrait.php.
|
abstract |
|
protected |
Definition at line 119 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 12 of file JsUtilsInternalTrait.php.
|
protected |
Definition at line 26 of file JsUtilsAjaxTrait.php.
|
protected |
Outputs an closing </script>
string | $extra |
Definition at line 84 of file JsUtilsInternalTrait.php.
|
protected |
BaseGui | $library | |
mixed | $view |
Definition at line 21 of file JsUtilsInternalTrait.php.
|
protected |
Definition at line 210 of file JsUtilsAjaxTrait.php.
|
static |
Definition at line 219 of file JsUtilsAjaxTrait.php.
|
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 501 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 560 of file JsUtilsActionsTrait.php.
Ajax\common\traits\_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 94 of file JsUtilsActionsTrait.php.
Ajax\common\traits\_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 72 of file JsUtilsActionsTrait.php.
|
private |
Performs an ajax GET request.
string | $url | The url of the request |
string | $responseElement | selector of the HTML element displaying the answer |
Definition at line 288 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 126 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 203 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 159 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 196 of file JsUtilsAjaxTrait.php.
|
static |
Definition at line 233 of file JsUtilsAjaxTrait.php.
|
private |
Performs an ajax request and receives the JSON data types by assigning DOM elements with the same name.
string | $url | the request url |
string | $method | Method used |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","context"=>"document","jsCondition"=>NULL,"headers"=>null,"immediatly"=>false,"before"=>null) |
Definition at line 373 of file JsUtilsAjaxTrait.php.
|
private |
Performs an ajax request and receives the JSON array data types by assigning DOM elements with the same name.
string | $maskSelector | |
string | $url | the request url |
string | $method | Method used, default : get |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","context"=>null,"jsCondition"=>NULL,"headers"=>null,"immediatly"=>false,"rowClass"=>"_json","before"=>null) |
Definition at line 447 of file JsUtilsAjaxTrait.php.
|
protected |
Outputs an opening <script>
string | $src |
Definition at line 72 of file JsUtilsInternalTrait.php.
|
private |
Definition at line 705 of file JsUtilsAjaxTrait.php.
|
private |
Definition at line 784 of file JsUtilsAjaxTrait.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 31 of file JsUtilsActionsTrait.php.
|
private |
Ensures the speed parameter is valid for jQuery.
string | int | $speed |
Definition at line 49 of file JsUtilsActionsTrait.php.
Ajax\common\traits\activateLink | ( | $target, | |
$property = 'href' , |
|||
$href = null |
|||
) |
Activates an element if it is active (add the class active)
string | $target | the container element |
string | $property | default: href |
string | $href | the active href (if null, window.location.href is used) |
Definition at line 805 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 113 of file JsUtilsActionsTrait.php.
Ajax\common\traits\addCsrf | ( | $name = 'csrf-token' | ) |
Definition at line 926 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 242 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 250 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\addToCompile | ( | $jsScript | ) |
Definition at line 92 of file JsUtilsInternalTrait.php.
Ajax\common\traits\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 126 of file JsUtilsActionsTrait.php.
Ajax\common\traits\ajax | ( | $method, | |
$url, | |||
$responseElement = '' , |
|||
$parameters = [] |
|||
) |
Performs an ajax request.
string | $method | The http method (get, post, delete, put, head) |
string | $url | The url of the request |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 319 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\ajaxDeferred | ( | $method, | |
$url, | |||
$responseElement = '' , |
|||
$parameters = [] |
|||
) |
Performs a deferred ajax request.
string | $method | The http method (get, post, delete, put, head) |
string | $url | The url of the request |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 358 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\ajaxInterval | ( | $method, | |
$url, | |||
$interval, | |||
$globalName = null , |
|||
$responseElement = '' , |
|||
$parameters = [] , |
|||
$immediatly = true |
|||
) |
Executes an ajax query at regular intervals.
string | $method | The http method (post, get...) |
string | $url | The url of the request |
int | $interval | The interval in milliseconds |
string | $globalName | The interval name, for clear it |
string | $responseElement | |
array | $parameters | The ajax parameters, default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
$immediatly |
Definition at line 342 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\ajaxOn | ( | $event, | |
$element, | |||
$url, | |||
$responseElement = '' , |
|||
$parameters = array() |
|||
) |
Performs an ajax request to $url on the event $event on $element and display it in $responseElement.
string | $event | the event observed |
string | $element | the element on which event is observed |
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("method"=>"get","preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 577 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\ajaxOnClick | ( | $element, | |
$url, | |||
$responseElement = '' , |
|||
$parameters = array() |
|||
) |
Performs a get to $url on the click event on $element and display it in $responseElement.
string | $element | the element on which event is observed |
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("method"=>"get","preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 601 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\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 201 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 237 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 668 of file JsUtilsActionsTrait.php.
Ajax\common\traits\attr | ( | $element = 'this' , |
|
$attributeName = 'id' , |
|||
$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 152 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 153 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\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 139 of file JsUtilsActionsTrait.php.
Ajax\common\traits\blur | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library blur event.
string | $element | element to attach the event to |
string | $js | code to execute |
Definition at line 65 of file JsUtilsEventsTrait.php.
Ajax\common\traits\change | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library change event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 81 of file JsUtilsEventsTrait.php.
Ajax\common\traits\clearInterval | ( | $globalName, | |
$immediatly = true |
|||
) |
Clears an existing interval.
string | $globalName | The interval global name |
boolean | $immediatly | delayed if false |
Definition at line 712 of file JsUtilsActionsTrait.php.
Ajax\common\traits\click | ( | $element = 'this' , |
|
$js = '' , |
|||
$ret_false = TRUE , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library click event.
string | $element | element to attach the event to |
string | array | $js | code to execute |
boolean | $ret_false | or not to return false |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 99 of file JsUtilsEventsTrait.php.
Ajax\common\traits\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 479 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 88 of file JsUtilsInternalTrait.php.
Ajax\common\traits\contextmenu | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library contextmenu event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 125 of file JsUtilsEventsTrait.php.
Ajax\common\traits\counter | ( | $counterSelector, | |
$value = 0 , |
|||
$limit = 0 , |
|||
$globalName = null , |
|||
$countDown = true , |
|||
$immediatly = true |
|||
) |
Associates a counter to the element designated by $counterSelector Triggers the events counter-start and counter-end on finished with the parameters value and limit.
string | $counterSelector | Selector of the existing element wich display the counter |
integer | $value | The initial value of the counter |
integer | $limit | The limit of the counter (minimum if countDown is true, maximum if not) |
string | $globalName | The global name of the counter, to use with the clearInterval method |
boolean | $countDown | count down if true or elapse if false |
boolean | $immediatly | delayed if false |
Definition at line 734 of file JsUtilsActionsTrait.php.
Ajax\common\traits\counterOn | ( | $element, | |
$event, | |||
$counterSelector, | |||
$value = 0 , |
|||
$limit = 0 , |
|||
$globalName = null , |
|||
$countDown = true |
|||
) |
Associates a counter to the element designated by $counterSelector when $event is triggered on $element.
string | $element | The triggering element |
string | $event | The triggering event |
string | $counterSelector | Selector of the existing element wich display the counter |
integer | $value | The initial value of the counter |
integer | $limit | The limit of the counter (minimum if countDown is true, maximum if not) |
string | $globalName | The global name of the counter, to use with the clearInterval method |
boolean | $countDown | count down if true or elapse if false |
Definition at line 790 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 89 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\dblclick | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library dblclick event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 141 of file JsUtilsEventsTrait.php.
|
protected |
Definition at line 29 of file JsUtilsInternalTrait.php.
Ajax\common\traits\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 525 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 542 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 575 of file JsUtilsActionsTrait.php.
Ajax\common\traits\error | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Outputs a javascript library error event.
string | $element | element to attach the event to |
string | $js | code to execute |
Definition at line 154 of file JsUtilsEventsTrait.php.
Ajax\common\traits\exec | ( | $js, | |
$immediatly = false |
|||
) |
Executes the code $js.
string | $js | Code to execute |
boolean | $immediatly | delayed if false |
Definition at line 593 of file JsUtilsActionsTrait.php.
Ajax\common\traits\execAtLast | ( | $js | ) |
Executes the code $js.
string | $js | Code to execute |
boolean | $immediatly | delayed if false |
Definition at line 609 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 626 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 267 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 284 of file JsUtilsActionsTrait.php.
Ajax\common\traits\focus | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library focus event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 170 of file JsUtilsEventsTrait.php.
Ajax\common\traits\get | ( | $url, | |
$responseElement = '' , |
|||
$parameters = [] |
|||
) |
Performs an ajax GET request.
string | $url | The url of the request |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 302 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\getDeferred | ( | $url, | |
$responseElement = "" , |
|||
$parameters = [] |
|||
) |
Prepares a Get ajax request for using on an event.
string | $url | The url of the request |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 537 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\getHref | ( | $element, | |
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Uses an hyperlink to make an ajax get request.
string | $element | an hyperlink selector |
string | $responseElement | the target of the ajax request (data-target attribute of the element is used if responseElement is omited) |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"href","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","jsCondition"=>NULL,"headers"=>null,"historize"=>true,"before"=>null,"listenerOn"=>false) |
Definition at line 633 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\getOn | ( | $event, | |
$element, | |||
$url, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a get to $url on the event $event on $element and display it in $responseElement.
string | $event | the event |
string | $element | the element on which event is observed |
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 557 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\getOnClick | ( | $element, | |
$url, | |||
$responseElement = '' , |
|||
$parameters = array() |
|||
) |
Performs a get to $url on the click event on $element and display it in $responseElement.
string | $element | the element on which click is observed |
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 618 of file JsUtilsAjaxTrait.php.
|
abstract |
Ajax\common\traits\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 367 of file JsUtilsActionsTrait.php.
Ajax\common\traits\hover | ( | $element = 'this' , |
|
$over = '' , |
|||
$out = '' |
|||
) |
Outputs a javascript library hover event.
string | $element | |
string | $over | code for mouse over |
string | $out | code for mouse out |
Definition at line 184 of file JsUtilsEventsTrait.php.
Ajax\common\traits\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 184 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 104 of file JsUtilsAjaxTrait.php.
|
abstract |
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 691 of file JsUtilsActionsTrait.php.
Ajax\common\traits\json | ( | $url, | |
$method = "get" , |
|||
$parameters = [] |
|||
) |
Performs an ajax request and receives the JSON data types by assigning DOM elements with the same name.
string | $url | the request url |
string | $method | Method used |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","context"=>"document","jsCondition"=>NULL,"headers"=>null,"immediatly"=>false,"before"=>null) |
Definition at line 395 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\jsonArray | ( | $maskSelector, | |
$url, | |||
$method = 'get' , |
|||
$parameters = [] |
|||
) |
Performs an ajax request and receives the JSON array data types by assigning DOM elements with the same name.
string | $maskSelector | |
string | $url | the request url |
string | $method | Method used, default : get |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","context"=>null,"jsCondition"=>NULL,"headers"=>null,"immediatly"=>false,"rowClass"=>"_json","before"=>null) |
Definition at line 484 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\jsonArrayDeferred | ( | $maskSelector, | |
$url, | |||
$method = 'get' , |
|||
$parameters = [] |
|||
) |
Peforms an ajax request delayed and receives a JSON array data types by copying and assigning them to the DOM elements with the same name.
string | $maskSelector | |
string | $url | the request url |
string | $method | Method used, default : get |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","context"=>null,"jsCondition"=>NULL,"headers"=>null,"rowClass"=>"_json","before"=>null) |
Definition at line 499 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\jsonArrayOn | ( | $event, | |
$element, | |||
$maskSelector, | |||
$url, | |||
$method = 'get' , |
|||
$parameters = array() |
|||
) |
Performs an ajax request and receives the JSON array data types by assigning DOM elements with the same name when $event fired on $element.
string | $element | |
string | $event | |
string | $url | the request url |
string | $method | Method used, default : get |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get","rowClass"=>"_json","immediatly"=>true,"before"=>null,"listenerOn"=>false) |
Definition at line 516 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\jsonDeferred | ( | $url, | |
$method = 'get' , |
|||
$parameters = [] |
|||
) |
Prepares an ajax request delayed and receives the JSON data types by assigning DOM elements with the same name.
string | $url | the request url |
string | $method | Method used |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","context"=>"document","jsCondition"=>NULL,"headers"=>null,"immediatly"=>false,"before"=>null) |
Definition at line 431 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\jsonOn | ( | $event, | |
$element, | |||
$url, | |||
$method = 'get' , |
|||
$parameters = array() |
|||
) |
Makes an ajax request and receives the JSON data types by assigning DOM elements with the same name when $event fired on $element.
string | $element | |
string | $event | |
string | $url | the request address |
string | $method | default get |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get","immediatly"=>true,"before"=>null,"listenerOn"=>false) |
Definition at line 411 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\keydown | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library keydown event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 202 of file JsUtilsEventsTrait.php.
Ajax\common\traits\keypress | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library keypress event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 218 of file JsUtilsEventsTrait.php.
Ajax\common\traits\keyup | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library keydown event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 234 of file JsUtilsEventsTrait.php.
Ajax\common\traits\load | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library load event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 250 of file JsUtilsEventsTrait.php.
|
protected |
Definition at line 41 of file JsUtilsInternalTrait.php.
Ajax\common\traits\mousedown | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library mousedown event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 266 of file JsUtilsEventsTrait.php.
Ajax\common\traits\mouseenter | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library mouseenter event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 314 of file JsUtilsEventsTrait.php.
Ajax\common\traits\mouseleave | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library mouseleave event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 298 of file JsUtilsEventsTrait.php.
Ajax\common\traits\mouseout | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library mouseout event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 282 of file JsUtilsEventsTrait.php.
Ajax\common\traits\mouseover | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library mouseover event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 330 of file JsUtilsEventsTrait.php.
Ajax\common\traits\mouseup | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library mouseup event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 346 of file JsUtilsEventsTrait.php.
|
protected |
Definition at line 149 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\post | ( | $url, | |
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = [] |
|||
) |
Makes an ajax post.
string | $url | the request url |
string | $responseElement | selector of the HTML element displaying the answer |
string | $params | JSON parameters |
array | $parameters | default : array("jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 722 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postDeferred | ( | $url, | |
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = [] |
|||
) |
Prepares a delayed ajax POST to use on an event.
string | $url | the request url |
string | $params | JSON parameters |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 740 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postForm | ( | $url, | |
$form, | |||
$responseElement, | |||
$parameters = [] |
|||
) |
Performs a post form with ajax.
string | $url | The url of the request |
string | $form | The form HTML id |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 864 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postFormAction | ( | $element, | |
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Uses a form action to make an ajax post request.
string | $element | a form selector |
string | $responseElement | the target of the ajax request (data-target attribute of the element is used if responseElement is omited) |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"href","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","jsCondition"=>NULL,"headers"=>null,"historize"=>true,"before"=>null,"listenerOn"=>false) |
Definition at line 684 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postFormDeferred | ( | $url, | |
$form, | |||
$responseElement, | |||
$parameters = [] |
|||
) |
Performs a delayed post form with ajax For use on an event.
string | $url | The url of the request |
string | $form | The form HTML id |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null) |
Definition at line 882 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postFormOn | ( | $event, | |
$element, | |||
$url, | |||
$form, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post form with ajax in response to an event $event on $element display the result in $responseElement.
string | $event | |
string | $element | |
string | $url | |
string | $form | |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"validation"=>false,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 900 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postFormOnClick | ( | $element, | |
$url, | |||
$form, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post form with ajax in response to the click event on $element display the result in $responseElement.
string | $element | |
string | $url | |
string | $form | |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"validation"=>false,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 922 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postHref | ( | $element, | |
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Uses an hyperlink to make an ajax get request.
string | $element | an hyperlink selector |
string | $responseElement | the target of the ajax request (data-target attribute of the element is used if responseElement is omited) |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"href","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","jsCondition"=>NULL,"headers"=>null,"historize"=>true,"before"=>null,"listenerOn"=>false) |
Definition at line 660 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postOn | ( | $event, | |
$element, | |||
$url, | |||
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post to $url on the event $event fired on $element and pass the parameters $params Display the result in $responseElement.
string | $event | |
string | $element | |
string | $url | The url of the request |
string | $params | The parameters to send |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null,"listenerOn"=>false) |
Definition at line 760 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\postOnClick | ( | $element, | |
$url, | |||
$params = '{}' , |
|||
$responseElement = '' , |
|||
$parameters = array() |
|||
) |
Performs a post to $url on the click event fired on $element and pass the parameters $params Display the result in $responseElement.
string | $element | |
string | $url | The url of the request |
string | $params | The parameters to send |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false,"before"=>null,"before"=>null,"listenerOn"=>false) |
Definition at line 780 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\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 250 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 35 of file JsUtilsInternalTrait.php.
Ajax\common\traits\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 316 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 183 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\resize | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library resize event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 379 of file JsUtilsEventsTrait.php.
Ajax\common\traits\scroll | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library scroll event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 396 of file JsUtilsEventsTrait.php.
|
protected |
Definition at line 259 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\setAjaxLoader | ( | $loader | ) |
Definition at line 276 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 269 of file JsUtilsAjaxTrait.php.
Ajax\common\traits\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 648 of file JsUtilsActionsTrait.php.
Ajax\common\traits\setJsonToElement | ( | $json, | |
$elementClass = "_element" , |
|||
$immediatly = true |
|||
) |
Definition at line 634 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 432 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 333 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 350 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 301 of file JsUtilsActionsTrait.php.
Ajax\common\traits\sortable | ( | $element, | |
$options = array () |
|||
) |
Creates a jQuery sortable.
string | $element | |
array | $options |
Definition at line 443 of file JsUtilsActionsTrait.php.
Ajax\common\traits\tablesorter | ( | $table = '' , |
|
$options = '' |
|||
) |
Table Sorter Plugin.
string | $table | table name |
string | $options | plugin location |
Definition at line 466 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 384 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 398 of file JsUtilsActionsTrait.php.
Ajax\common\traits\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 410 of file JsUtilsActionsTrait.php.
Ajax\common\traits\unload | ( | $element = 'this' , |
|
$js = '' , |
|||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$listenerOn = false |
|||
) |
Outputs a javascript library unload event.
string | $element | element to attach the event to |
string | $js | code to execute |
boolean | $preventDefault | |
boolean | $stopPropagation | |
boolean | string | $listenerOn | use a selector for a delegated event handler |
Definition at line 362 of file JsUtilsEventsTrait.php.
Ajax\common\traits\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 172 of file JsUtilsActionsTrait.php.
|
protected |
Definition at line 18 of file JsUtilsAjaxTrait.php.
|
protected |
Definition at line 10 of file JsUtilsInternalTrait.php.
trait JsUtilsActionsTrait |
Definition at line 13 of file JsUtilsActionsTrait.php.
trait JsUtilsAjaxTrait |
Definition at line 14 of file JsUtilsAjaxTrait.php.
trait JsUtilsEventsTrait |
Definition at line 12 of file JsUtilsEventsTrait.php.
trait JsUtilsInternalTrait |
Definition at line 6 of file JsUtilsInternalTrait.php.