Main class of Majax library, that provides functions for
Located in /majax.php (line 198)
MajaxCore | --Majax
Instance of Majax - singleton.
Instance of MajaxFormHandler.
Registered functions, that are processed on Majax calls.
Value, that is send. This value is assigned by
Adds slashes to string calling addcslashes function.
Assigns value, that will be sended.
If parameter $encode is set to true, than value will be encoded by jsonEncode function. Otherwise raw value is used.
Assigns value, that will be sended.
Value must be well-formed XML. Value is transformed by Majax::toDOM function.
Decodes JSON value to standart PHP type.
Encodes string to JSON.
Processes AJAX request.
It's necessary to call this function to process MAJAX requests.
Registeres PHP function that handles AJAX request.
Registres function, that is called when MAJAX request with name $name is processed. If function is not specified, function with name $function is called instead.
Sends (i. e. writes out) assigned values.
Sends assigned values. If $exit is set to true, then after sending exit. If assigned value is not a string, then jsonEncode function is used.
Converts well-formed XML to Javascript code, that creates this XML.
If $xml is not well-formed exception is thrown. Return Javascript code, that after evaluation creates DOM element representing $xml. This element can be appended to existing structure.
Creates instance of Majax and initializes.
Initializes members.
Decodes JSON value to PHP value.
Encodes PHP array or object to JSON.
Encodes PHP array ($isObject is false) or object ($isObject is true) to JSON value.
Encodes PHP object to JSON.
Encodes PHP value to JSON value.
Inherited From MajaxCore
MajaxCore::__get()
MajaxCore::__set()
Documentation generated on Tue, 23 Feb 2010 10:23:57 +0100 by phpDocumentor 1.4.3