phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Functions | |
hookExists ($hookKey) | |
getHook ($hookKey) | |
addHook ($hookKey, $callable) | |
Adds a new Hook. More... | |
execHook ($hookKey,... $variables) | |
Executes the hook with key $hookKey. More... | |
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) | |
_eventsOnCreate (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. More... | |
getOnClick ($url, $responseElement="", $parameters=array()) | |
Performs a get to $url on the click event on $element and display it in $responseElement. More... | |
postOn ($event, $url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the event $event on $element and display it in $responseElement. More... | |
postOnClick ($url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the click event on $element and display it in $responseElement. More... | |
postFormOn ($event, $url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax. More... | |
postFormOnClick ($url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax on click. More... | |
jsDoJquery ($jqueryCall, $param="") | |
executeOnRun ($jsCode) | |
jsHtml ($content="") | |
jsShow () | |
jsHide () | |
jsToggle ($value) | |
getEvents () | |
ctrl ($name, $value, $typeCtrl) | |
removeOldValues (&$oldValue, $allValues) | |
_getElementBy ($callback, $elements) | |
getProperties () | |
setProperties ($properties) | |
setProperty ($name, $value) | |
getProperty ($name) | |
addToProperty ($name, $value, $separator=" ") | |
addProperties ($properties) | |
removePropertyValue ($name, $value) | |
removePropertyValues ($name, $values) | |
addToPropertyUnique ($name, $value, $typeCtrl) | |
addToPropertyCtrl ($name, $value, $typeCtrl) | |
addToPropertyCtrlCheck ($name, $value, $typeCtrl) | |
removeProperty ($name) | |
propertyContains ($propertyName, $value) | |
setPropertyCtrl ($name, $value, $typeCtrl) | |
getElementByPropertyValue ($propertyName, $value, $elements) | |
jsSetContent (JsUtils $jsUtils) | |
Generate the jquery script to set the elements to the HtmlNavElement. More... | |
getRoot () | |
setRoot ($root) | |
getAttr () | |
setAttr ($attr) | |
Define the html attribute for each element url in ajax. More... | |
__call ($method, $args) | |
fromDispatcher (JsUtils $js, $dispatcher, $startIndex=0) | |
Variables | |
trait | BaseHooksTrait |
trait | BaseHtmlEventsTrait |
trait | BaseHtmlPropertiesTrait |
trait | NavElementTrait |
Ajax\common\html\traits\__call | ( | $method, | |
$args | |||
) |
Definition at line 44 of file NavElementTrait.php.
Ajax\common\html\traits\_addEvent | ( | $event, | |
$jsCode | |||
) |
string | $event | |
string | AjaxCall | $jsCode |
Definition at line 48 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\_ajaxOn | ( | $operation, | |
$event, | |||
$url, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
string | $operation | http method get, post, postForm or json |
string | $event | the event that triggers the request |
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) |
Definition at line 136 of file BaseHtmlEventsTrait.php.
|
protected |
Definition at line 116 of file BaseHtmlEventsTrait.php.
|
abstractprotected |
Ajax\common\html\traits\addEvent | ( | $event, | |
$jsCode, | |||
$stopPropagation = false , |
|||
$preventDefault = false |
|||
) |
string | $event | |
string | AjaxCall | $jsCode | |
boolean | $stopPropagation | |
boolean | $preventDefault |
Definition at line 25 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\addEventsOnRun | ( | JsUtils | $js = NULL | ) |
Definition at line 91 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\addHook | ( | $hookKey, | |
$callable | |||
) |
Adds a new Hook.
String | $hookKey | |
callable | $callable |
Definition at line 32 of file BaseHooksTrait.php.
Ajax\common\html\traits\addProperties | ( | $properties | ) |
Definition at line 63 of file BaseHtmlPropertiesTrait.php.
|
abstract |
string | $name | |
mixed | $value | |
string | $separator |
Definition at line 46 of file BaseHtmlPropertiesTrait.php.
|
abstract |
Definition at line 87 of file BaseHtmlPropertiesTrait.php.
|
abstract |
Definition at line 91 of file BaseHtmlPropertiesTrait.php.
|
protected |
Definition at line 78 of file BaseHtmlPropertiesTrait.php.
|
abstractprotected |
Ajax\common\html\traits\execHook | ( | $hookKey, | |
$variables | |||
) |
Executes the hook with key $hookKey.
string | $hookKey | |
mixed | null | $variable |
Definition at line 42 of file BaseHooksTrait.php.
Ajax\common\html\traits\executeOnRun | ( | $jsCode | ) |
Definition at line 233 of file BaseHtmlEventsTrait.php.
|
abstract |
Ajax\common\html\traits\getAttr | ( | ) |
Definition at line 30 of file NavElementTrait.php.
|
protected |
Definition at line 118 of file BaseHtmlPropertiesTrait.php.
Ajax\common\html\traits\getEvents | ( | ) |
Definition at line 255 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\getHook | ( | $hookKey | ) |
|
abstract |
Performs a get to $url on the event $event on $element and display it in $responseElement.
string | $event | the event that triggers the get request |
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) |
Definition at line 152 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\getOnClick | ( | $url, | |
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a get to $url on the click event on $element and display it in $responseElement.
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) |
Definition at line 164 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\getProperties | ( | ) |
Definition at line 17 of file BaseHtmlPropertiesTrait.php.
|
abstract |
Definition at line 35 of file BaseHtmlPropertiesTrait.php.
Ajax\common\html\traits\getRoot | ( | ) |
Definition at line 23 of file NavElementTrait.php.
Ajax\common\html\traits\hookExists | ( | $hookKey | ) |
Ajax\common\html\traits\jsDoJquery | ( | $jqueryCall, | |
$param = "" |
|||
) |
Definition at line 229 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\jsHide | ( | ) |
Definition at line 245 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\jsHtml | ( | $content = "" | ) |
Definition at line 237 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\jsSetContent | ( | JsUtils | $jsUtils | ) |
Generate the jquery script to set the elements to the HtmlNavElement.
JsUtils | $jsUtils |
Definition at line 19 of file NavElementTrait.php.
Ajax\common\html\traits\jsShow | ( | ) |
Definition at line 241 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\jsToggle | ( | $value | ) |
Definition at line 249 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\jsTrigger | ( | $event, | |
$params = "[this]" |
|||
) |
Definition at line 39 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\on | ( | $event, | |
$jsCode, | |||
$stopPropagation = false , |
|||
$preventDefault = false |
|||
) |
string | $event | |
string | $jsCode | |
boolean | $stopPropagation | |
boolean | $preventDefault |
Definition at line 70 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\onClick | ( | $jsCode, | |
$stopPropagation = false , |
|||
$preventDefault = true |
|||
) |
Definition at line 74 of file BaseHtmlEventsTrait.php.
|
abstract |
Definition at line 82 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\postFormOn | ( | $event, | |
$url, | |||
$form, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post form with ajax.
string | $event | the event that triggers the post request |
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) |
Definition at line 212 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\postFormOnClick | ( | $url, | |
$form, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post form with ajax on click.
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) |
Definition at line 225 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\postOn | ( | $event, | |
$url, | |||
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post to $url on the event $event on $element and display it in $responseElement.
string | $event | the event that triggers the post request |
string | $url | The url of the request |
string | $params | the request parameters in JSON format |
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) |
Definition at line 178 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\postOnClick | ( | $url, | |
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post to $url on the click event on $element and display it in $responseElement.
string | $url | The url of the request |
string | $params | the request parameters in JSON format |
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) |
Definition at line 199 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\propertyContains | ( | $propertyName, | |
$value | |||
) |
Definition at line 104 of file BaseHtmlPropertiesTrait.php.
|
abstractprotected |
Ajax\common\html\traits\removeProperty | ( | $name | ) |
Definition at line 98 of file BaseHtmlPropertiesTrait.php.
Ajax\common\html\traits\removePropertyValue | ( | $name, | |
$value | |||
) |
Definition at line 68 of file BaseHtmlPropertiesTrait.php.
|
protected |
Definition at line 73 of file BaseHtmlPropertiesTrait.php.
Ajax\common\html\traits\setAttr | ( | $attr | ) |
Define the html attribute for each element url in ajax.
string | $attr | html attribute |
Definition at line 39 of file NavElementTrait.php.
Ajax\common\html\traits\setClick | ( | $jsCode | ) |
Definition at line 78 of file BaseHtmlEventsTrait.php.
Ajax\common\html\traits\setProperties | ( | $properties | ) |
|
abstract |
Definition at line 30 of file BaseHtmlPropertiesTrait.php.
|
abstractprotected |
Definition at line 112 of file BaseHtmlPropertiesTrait.php.
Ajax\common\html\traits\setRoot | ( | $root | ) |
Definition at line 26 of file NavElementTrait.php.
Ajax\common\html\traits\trigger | ( | $event, | |
$params = "[]" |
|||
) |
Definition at line 35 of file BaseHtmlEventsTrait.php.
trait BaseHooksTrait |
Definition at line 5 of file BaseHooksTrait.php.
trait BaseHtmlEventsTrait |
Definition at line 14 of file BaseHtmlEventsTrait.php.
trait BaseHtmlPropertiesTrait |
Definition at line 11 of file BaseHtmlPropertiesTrait.php.
trait NavElementTrait |
Definition at line 12 of file NavElementTrait.php.