Wigbi__JSThe Wigbi class (ignore the file's __JS suffix).
This class is the most central class of the Wigbi JavaScript layer. It is used to initialize the JavaScript layer and has some central utility functionality.
Two important properties are serverRoot and webRoot, which points out the application root folder for the executing FILE and PAGE. Except these two properties the class contains handy functions that do not belong anywhere else, in order to keep Wigbi stripped of small classes that only serves a very limited purpose.
Another very important function is the executeFunction function. This is the "heart" of the Wigbi AJAX pipeline and is used by all AJAX-based operations that execute PHP functions asynchronously.
Located in /wigbi_source/php/__js__system/Wigbi.php (line 50)
static void
executeFunction
($className $className, $object $object, functionName $functionName, parameters $parameters, callBack $callBack)
static void
initSeedControl
($viewControlId $viewControlId, $editControlId $editControlId, $viewDivId $viewDivId, $editDivId $editDivId, $viewButtonId $viewButtonId, $editButtonId $editButtonId)
static void
start
(bool $rootPath, string $asyncPostBackPage, array $controlClasses, array $seedClasses, string $languageString)
static addControl (line 121)
Register a Wigbi control instance.
static addSeedControlBehavior (line 200)
static asyncPostBackPage (line 62)
Get the relative path to the Wigbi async postback page.
static controlClasses (line 82)
Get all classes that have been added to the wigbi/controls folder.
static controls (line 72)
Get all control that have been added with addControl so far.
static executeFunction (line 176)
[ASYNC] Execute a server side function asynchronously.
Function parameters are defined as a value array. They MUST be provided in the correct order.
The function has no return value, since it is executed with AJAX. The return value is applied to the callBack function as a parameter instead, e.g.
onLogin(bool success) { ... }
static getControl (line 153)
Retrieve a control that has been registered with addControl.
static initSeedControl (line 142)
Initialize view/edit seed behavior for a Wigbi control.
This is a temporary function that has been added here since no better option existed. It may be removed in the future.
To use this function, the view control must a setObject property function while the edit control must have an object get property.
static rootPath (line 205)
static seedClasses (line 92)
Get all classes that have been added to the wigbi/seeds folder.
static start (line 190)
Start the Wigbi application.
static webRoot (line 108)
Get the path to the application root folder for the PAGE.
The application root folder is where the wigbi folder exists.
Use this property if a path is to be used by the CLIENT. It will make the path context independent, unlike absolute and relative URLs.
Documentation generated on Sun, 27 Dec 2009 20:12:08 +0100 by phpDocumentor 1.4.1