Inheritance diagram for JsHelper:

Public Member Functions | |
| __construct () | |
| __object ($name, $var) | |
| alert_ ($message) | |
| call__ ($method, $params) | |
| confirm_ ($message) | |
| escape ($string) | |
| get__ ($name) | |
| if_ ($if, $then, $else=null, $elseIf=array()) | |
| load_ ($url=null, $options=array()) | |
| object ($data=array(), $block=false, $prefix= '', $postfix= '', $stringKeys=array(), $quoteKeys=true, $q="\"") | |
| prompt_ ($message, $default= '') | |
| real ($var) | |
| redirect_ ($url=null) | |
| select ($pattern) | |
| tryThese_ ($expr1, $expr2, $expr3) | |
Public Attributes | |
| $__objects = array() | |
| $action = null | |
| $base = null | |
| $data = null | |
| $effectMap | |
| $helpers = array() | |
| $here = null | |
| $hook = null | |
| $output = false | |
| $params = null | |
| $plugin = null | |
| $themeWeb = null | |
| $webroot = null | |
Definition at line 34 of file js.php.
| JsHelper::__construct | ( | ) |
Constructor
private
Reimplemented from Overloadable2.
Definition at line 57 of file js.php.
References __construct().
| JsHelper::__object | ( | $ | name, | |
| $ | var | |||
| ) |
| JsHelper::call__ | ( | $ | method, | |
| $ | params | |||
| ) |
| JsHelper::escape | ( | $ | string | ) |
| JsHelper::get__ | ( | $ | name | ) |
| JsHelper::if_ | ( | $ | if, | |
| $ | then, | |||
| $ | else = null, |
|||
| $ | elseIf = array() | |||
| ) |
| JsHelper::load_ | ( | $ | url = null, |
|
| $ | options = array() | |||
| ) |
Loads a remote URL
| string | $url | |
| array | $options |
Definition at line 119 of file js.php.
References $url, and Router::url().
| JsHelper::object | ( | $ | data = array(), |
|
| $ | block = false, |
|||
| $ | prefix = '', |
|||
| $ | postfix = '', |
|||
| $ | stringKeys = array(), |
|||
| $ | quoteKeys = true, |
|||
| $ | q = "\"" | |||
| ) |
Generates a JavaScript object in JavaScript Object Notation (JSON) from an array
| array | $data Data to be converted | |
| boolean | $block Wraps return value in a <script> block if true | |
| string | $prefix Prepends the string to the returned data | |
| string | $postfix Appends the string to the returned data | |
| array | $stringKeys A list of array keys to be treated as a string | |
| boolean | $quoteKeys If false, treats $stringKey as a list of keys *not* to be quoted | |
| string | $q The type of quote to use |
| JsHelper::real | ( | $ | var | ) |
| JsHelper::redirect_ | ( | $ | url = null |
) |
| JsHelper::select | ( | $ | pattern | ) |
| JsHelper::$effectMap |
1.4.7