Todo List
Located in /PhpExt/Javascript.php [line 17]
Methods
static JavascriptStm assign( string $varName, string $statement )
Creates an assignment statement for an existing variable
static JavascriptStm assignNew( string $varName, string $statement )
Creates an assignment statement for an new variable (in the form 'var foo = 1;')
static JavascriptStm functionDef( string $functionName, string $functionBody, [array $functionParams = array()] )
Returns a variable name
static JavascriptStm inlineStm( string $statement )
Creates a javascript statement without a semicolon at the end.
static void isJavascript( $value )
static void isJavascriptStm( $value )
static void jsonEncode( $value )
static string output( array 0 )
static void sendContentType( )
static JavascriptStm stm( string $statement )
Creates a javascript statement with a semicolon at the end.
static void valueToJavascript( $value, [ $lazy = false] )
static JavascriptStm variable( string $varName )