phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
JsUtils Class Reference
+ Inheritance diagram for JsUtils:
+ Collaboration diagram for JsUtils:

Public Member Functions

 setDi (DiInterface $di)
 
 getDi ()
 
 getUrl ($url)
 
 addViewElement ($identifier, $content, &$view)
 
 createScriptVariable (&$view, $view_var, $output)
 
 forward ($initialController, $controller, $action, $params=array())
 
 renderContent ($initialControllerInstance, $viewName, $params=NULL)
 
 fromDispatcher ($dispatcher)
 
- Public Member Functions inherited from JsUtils
 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 Attributes

 $_di
 
- Protected Attributes inherited from JsUtils
 $params
 
 $injected
 
 $_ui
 
 $_bootstrap
 
 $_semantic
 
 $config
 

Additional Inherited Members

- Protected Member Functions inherited from JsUtils
 initialize ()
 To override for special initialization of the component. More...
 

Detailed Description

Definition at line 10 of file JsUtils.php.

Member Function Documentation

◆ addViewElement()

addViewElement (   $identifier,
  $content,
$view 
)

Definition at line 25 of file JsUtils.php.

◆ createScriptVariable()

createScriptVariable ( $view,
  $view_var,
  $output 
)

Definition at line 34 of file JsUtils.php.

◆ forward()

forward (   $initialController,
  $controller,
  $action,
  $params = array() 
)

Definition at line 38 of file JsUtils.php.

◆ fromDispatcher()

fromDispatcher (   $dispatcher)

Definition at line 57 of file JsUtils.php.

◆ getDi()

getDi ( )

Definition at line 17 of file JsUtils.php.

◆ getUrl()

getUrl (   $url)

Definition at line 21 of file JsUtils.php.

◆ renderContent()

renderContent (   $initialControllerInstance,
  $viewName,
  $params = NULL 
)

Definition at line 49 of file JsUtils.php.

◆ setDi()

setDi ( DiInterface  $di)

Definition at line 12 of file JsUtils.php.

Field Documentation

◆ $_di

$_di
protected

Definition at line 11 of file JsUtils.php.


The documentation for this class was generated from the following file: