phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
JQuery PHP library. More...
Public Member Functions | |
getUrl ($url) | |
Generates an URL Used internally by phpMv. More... | |
addViewElement ($identifier, $content, &$view) | |
Adds the array of controls q in the $view element Used internally by phpMv. More... | |
createScriptVariable (&$view, $view_var, $output) | |
Creates the script variable script_foot Used internally by phpMv. More... | |
forward ($initialController, $controller, $action, $params) | |
Forwards to. More... | |
renderContent ($initialControllerInstance, $viewName, $params=NULL) | |
render the content of an existing view : $viewName and set the response to the modal content Used internally by phpMv More... | |
fromDispatcher ($dispatcher) | |
Collects url parts from the request dispatcher : controllerName, actionName, parameters Used internally by phpMv. More... | |
ui (JqueryUI $ui=NULL) | |
getter or setter of the jQuery-UI variable More... | |
bootstrap (Bootstrap $bootstrap=NULL) | |
getter or setter of the Twitter Bootstrap variable More... | |
semantic (Semantic $semantic=NULL) | |
getter or setter of the Semantic-UI variable More... | |
config ($config=NULL) | |
__construct ($params=array(), $injected=NULL) | |
__set ($property, $value) | |
getParam ($key) | |
output ($array_js) | |
Outputs the called javascript to the screen. More... | |
compile (&$view=NULL, $view_var='script_foot', $script_tags=TRUE) | |
gather together all script needing to be output More... | |
clear_compile () | |
Clears the array of script events collected for output. More... | |
getScript ($offset=0) | |
scriptCount () | |
inline ($script, $cdata=TRUE) | |
Outputs a <script> tag. More... | |
generate_json ($result=NULL, $match_array_type=FALSE) | |
Can be passed a database result or associative array and returns a JSON formatted string. More... | |
_prep_args ($result, $is_key=FALSE) | |
Ensures a standard json value and escapes values. More... | |
_add_event ($element, $js, $event, $preventDefault=false, $stopPropagation=false, $immediatly=true, $listenerOn=false) | |
Constructs the syntax for an event, and adds to into the array for compilation. More... | |
getInjected () | |
setParam (string $param, $value) | |
Protected Member Functions | |
initialize () | |
To override for special initialization of the component. More... | |
Protected Attributes | |
$params | |
$injected | |
$_ui | |
$_bootstrap | |
$_semantic | |
$config | |
Private Member Functions | |
_create_json ($json_result, $match_array_type) | |
JQuery PHP library.
Definition at line 23 of file JsUtils.php.
__construct | ( | $params = array() , |
|
$injected = NULL |
|||
) |
array | $params | ['debug'=>true,'defer'=>false,'ajax'=>['ajaxTransition'=>null,'attr'=>'','historize'=>false,'attr'=>''],'beforeCompileHtml'=>null,'semantic'=>false,'bootstrap'=>false,'historize'=>true,'autoActiveLinks'=>true] |
mixed | $injected | optional param for Symfony/Ubiquity |
Definition at line 196 of file JsUtils.php.
__set | ( | $property, | |
$value | |||
) |
Definition at line 266 of file JsUtils.php.
_add_event | ( | $element, | |
$js, | |||
$event, | |||
$preventDefault = false , |
|||
$stopPropagation = false , |
|||
$immediatly = true , |
|||
$listenerOn = false |
|||
) |
Constructs the syntax for an event, and adds to into the array for compilation.
string | $element | The element to attach the event to |
string | $js | The code to execute |
string | $event | The event to pass |
boolean | $preventDefault | If set to true, the default action of the event will not be triggered. |
boolean | $stopPropagation | Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. |
boolean | $immediatly | if true, execute this code immediatly |
boolean|string | false for an event associated with existing DOM elements, or a string selector and then the event is dynamically associated to all elements created in this selector |
Definition at line 498 of file JsUtils.php.
|
private |
Definition at line 427 of file JsUtils.php.
_prep_args | ( | $result, | |
$is_key = FALSE |
|||
) |
Ensures a standard json value and escapes values.
mixed | $result | |
boolean | $is_key |
Definition at line 453 of file JsUtils.php.
|
abstract |
Adds the array of controls q in the $view element Used internally by phpMv.
string | $identifier | |
string | $content | |
object | $view |
bootstrap | ( | Bootstrap | $bootstrap = NULL | ) |
getter or setter of the Twitter Bootstrap variable
Bootstrap | $bootstrap |
Definition at line 141 of file JsUtils.php.
clear_compile | ( | ) |
Clears the array of script events collected for output.
Definition at line 361 of file JsUtils.php.
compile | ( | & | $view = NULL , |
$view_var = 'script_foot' , |
|||
$script_tags = TRUE |
|||
) |
gather together all script needing to be output
object | $view | |
string | $view_var | view script variable name, default : script_foot |
boolean | $script_tags |
Definition at line 319 of file JsUtils.php.
config | ( | $config = NULL | ) |
|
abstract |
Creates the script variable script_foot Used internally by phpMv.
object | $view | |
string | $view_var | default: script_foot |
string | $output |
|
abstract |
Forwards to.
$controller::$action and set the response to the modal content Used internally by phpMv
object | $initialController | |
string | $controller | a controller |
string | $action | an action |
array | $params |
|
abstract |
Collects url parts from the request dispatcher : controllerName, actionName, parameters Used internally by phpMv.
mixed | $dispatcher |
generate_json | ( | $result = NULL , |
|
$match_array_type = FALSE |
|||
) |
Can be passed a database result or associative array and returns a JSON formatted string.
mixed | $result | result set or array |
bool | $match_array_type | match array types (defaults to objects) |
Definition at line 410 of file JsUtils.php.
getInjected | ( | ) |
Definition at line 522 of file JsUtils.php.
getParam | ( | $key | ) |
string | $key |
Definition at line 286 of file JsUtils.php.
getScript | ( | $offset = 0 | ) |
Definition at line 374 of file JsUtils.php.
|
abstract |
Generates an URL Used internally by phpMv.
string | $url |
|
protected |
To override for special initialization of the component.
Definition at line 264 of file JsUtils.php.
inline | ( | $script, | |
$cdata = TRUE |
|||
) |
Outputs a <script> tag.
string | $script | |
boolean | $cdata | If a CDATA section should be added |
Definition at line 394 of file JsUtils.php.
output | ( | $array_js | ) |
Outputs the called javascript to the screen.
string | $array_js | code to output |
Definition at line 298 of file JsUtils.php.
|
abstract |
render the content of an existing view : $viewName and set the response to the modal content Used internally by phpMv
object | $initialControllerInstance | |
string | $viewName | |
array | $params | The parameters to pass to the view |
scriptCount | ( | ) |
Definition at line 382 of file JsUtils.php.
semantic | ( | Semantic | $semantic = NULL | ) |
getter or setter of the Semantic-UI variable
Semantic | $semantic |
Definition at line 159 of file JsUtils.php.
setParam | ( | string | $param, |
$value | |||
) |
Definition at line 526 of file JsUtils.php.
ui | ( | JqueryUI | $ui = NULL | ) |
getter or setter of the jQuery-UI variable
JqueryUI | $ui |
Definition at line 123 of file JsUtils.php.
|
protected |
Definition at line 40 of file JsUtils.php.
|
protected |
Definition at line 46 of file JsUtils.php.
|
protected |
Definition at line 34 of file JsUtils.php.
|
protected |
Definition at line 52 of file JsUtils.php.
|
protected |
Definition at line 28 of file JsUtils.php.
|
protected |
Definition at line 26 of file JsUtils.php.