PhpExt : [ class tree ] [ index ] [ all elements ]

Class: PhpExt_Javascript

Source Location: /PhpExt/Javascript.php

Class PhpExt_Javascript

Method Summary
static JavascriptStm   assign()   Creates an assignment statement for an existing variable
static JavascriptStm   assignNew()   Creates an assignment statement for an new variable (in the form 'var foo = 1;')
static JavascriptStm   functionDef()   Returns a variable name
static JavascriptStm   inlineStm()   Creates a javascript statement without a semicolon at the end.
static void   isJavascript()  
static void   isJavascriptStm()  
static void   jsonEncode()  
static string   output()  
static void   sendContentType()  
static JavascriptStm   stm()   Creates a javascript statement with a semicolon at the end.
static void   valueToJavascript()  
static JavascriptStm   variable()   Returns a variable name

[ Top ]
Methods
static method assign  [line 52]

  static JavascriptStm assign( string $varName, string $statement  )

Creates an assignment statement for an existing variable

Parameters:
string   $varName:  The name of the assigned variable
string   $statement:  Javascript statement code to asign

API Tags:
Access:  public


[ Top ]
static method assignNew  [line 61]

  static JavascriptStm assignNew( string $varName, string $statement  )

Creates an assignment statement for an new variable (in the form 'var foo = 1;')

Parameters:
string   $varName:  The name of the assigned variable
string   $statement:  Javascript statement code to asign

API Tags:
Access:  public


[ Top ]
static method functionDef  [line 28]

  static JavascriptStm functionDef( string $functionName, string $functionBody, [array $functionParams = array()]  )

Returns a variable name

Parameters:
string   $functionName:  The name of the function to create
string   $functionBody:  A string with the javascript code for the body of the function
array   $functionParams:  Optional list of parameter names for the function definition

API Tags:
Access:  public


[ Top ]
static method inlineStm  [line 84]

  static JavascriptStm inlineStm( string $statement  )

Creates a javascript statement without a semicolon at the end.

Parameters:
string   $statement:  Javascript statement code

API Tags:
Access:  public


[ Top ]
static method isJavascript  [line 149]

  static void isJavascript( $value  )

Parameters:
   $value: 

API Tags:
Access:  public


[ Top ]
static method isJavascriptStm  [line 156]

  static void isJavascriptStm( $value  )

Parameters:
   $value: 

API Tags:
Access:  public


[ Top ]
static method jsonEncode  [line 135]

  static void jsonEncode( $value  )

Parameters:
   $value: 

API Tags:
Access:  public


[ Top ]
static method output  [line 94]

  static string output( array 0  )

Parameters:
array   0:  Receives indefinite parameters. Each paramenters refers to a string or a
  1. JavascriptStm

API Tags:
Access:  public


[ Top ]
static method sendContentType  [line 163]

  static void sendContentType( )


API Tags:
Access:  public


[ Top ]
static method stm  [line 74]

  static JavascriptStm stm( string $statement  )

Creates a javascript statement with a semicolon at the end.

Parameters:
string   $statement:  Javascript statement code

API Tags:
Access:  public


[ Top ]
static method valueToJavascript  [line 109]

  static void valueToJavascript( $value, [ $lazy = false]  )

Parameters:
   $value: 
   $lazy: 

API Tags:
Access:  public


[ Top ]
static method variable  [line 43]

  static JavascriptStm variable( string $varName  )

Returns a variable name

Parameters:
string   $varName:  The name of the variable to retrieve

API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 08 Aug 2008 15:55:52 -0500 by phpDocumentor 1.4.0