expJavascript
in package
This is the class expJavascript
Tags
Table of Contents
- ajaxReply() : string
- footJavascriptOutput() : mixed
- inAjaxAction() : mixed
- jClass() : string
- exdoc Takes a stdClass object from PHP, and generates the corresponding Javascript class function. The data in the members of the PHP object is not important, only the presence and names of said members. Returns the javascript class function code.
- jObject() : string
- exdoc Takes a stdClass object from PHP, and generates the corresponding Javascript calls to make a new Javascript object. In order for the resulting Javascript to function properly, a call to expJavascript_class must have been made previously, and the same $name attribute used. Returns the javascript code to create a new object.
- panel() : mixed
- Create a YUI2 Panel?
- parseJSFiles() : mixed
- pushToFoot() : mixed
- requiresJSON() : mixed
Methods
ajaxReply()
public
static ajaxReply([int $replyCode = 200 ][, string $replyText = 'Ok' ][, $data = '' ]) : string
Parameters
Tags
Return values
string —footJavascriptOutput()
public
static footJavascriptOutput() : mixed
Return values
mixed —inAjaxAction()
public
static inAjaxAction() : mixed
Return values
mixed —jClass()
exdoc Takes a stdClass object from PHP, and generates the corresponding Javascript class function. The data in the members of the PHP object is not important, only the presence and names of said members. Returns the javascript class function code.
public
static jClass(object $object, string $name) : string
Parameters
- $object : object
-
The object to translate
- $name : string
-
What to call the class in javascript
Tags
Return values
string —jObject()
exdoc Takes a stdClass object from PHP, and generates the corresponding Javascript calls to make a new Javascript object. In order for the resulting Javascript to function properly, a call to expJavascript_class must have been made previously, and the same $name attribute used. Returns the javascript code to create a new object.
public
static jObject(object $object[, string $name = "Array" ]) : string
The data in the members of the PHP object will be used to populate the members of the new Javascript object.
Parameters
- $object : object
-
The object to translate
- $name : string = "Array"
-
The name of the javascript class
Tags
Return values
string —panel()
Create a YUI2 Panel?
public
static panel( $params) : mixed
Parameters
Tags
Return values
mixed —parseJSFiles()
public
static parseJSFiles() : mixed
Return values
mixed —pushToFoot()
public
static pushToFoot(mixed $params) : mixed
Parameters
- $params : mixed
Return values
mixed —requiresJSON()
public
static requiresJSON() : mixed