MajaxMain class of Majax library, that provides functions for
Located in /majax.php (line 198)
MajaxCore | --Majax
static Majax
$instance_
= null (line 206)
Instance of Majax - singleton.
MajaxFormHandler
$form_
(line 228)
Instance of MajaxFormHandler.
array
$registered_
(line 221)
Registered functions, that are processed on Majax calls.
string
$value_
= array() (line 214)
Value, that is send. This value is assigned by
static addSlashes (line 608)
Adds slashes to string calling addcslashes function.
static assign (line 269)
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.
static assignXML (line 286)
Assigns value, that will be sended.
Value must be well-formed XML. Value is transformed by Majax::toDOM function.
static jsonDecode (line 335)
Decodes JSON value to standart PHP type.
static jsonEncode (line 320)
Encodes string to JSON.
static process (line 557)
Processes AJAX request.
It's necessary to call this function to process MAJAX requests.
static register (line 539)
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.
static send (line 301)
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.
static toDOM (line 461)
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.
Constructor Majax (line 233)
Creates instance of Majax and initializes.
initDefaults (line 255)
Initializes members.
jsonDecode_ (line 429)
Decodes JSON value to PHP value.
jsonEncodeArray_ (line 379)
Encodes PHP array or object to JSON.
Encodes PHP array ($isObject is false) or object ($isObject is true) to JSON value.
jsonEncodeObject_ (line 418)
Encodes PHP object to JSON.
jsonEncode_ (line 350)
Encodes PHP value to JSON value.
__get (line 614)
Inherited From MajaxCore
MajaxCore::__get()
MajaxCore::__set()
Documentation generated on Tue, 23 Feb 2010 10:23:57 +0100 by phpDocumentor 1.4.3