\CJAXConfig

The Config class that stores all settings and optional preferences.

Ext serves as base class for many CJAX objects to allow convenient Xml and settings/options manipulation.

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
$sizzle
$fallback
$caching
$ajaxView
$debug
$ipDebug
$initUrl
$camelize
$camelizeUcfirst
$uploadDir
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$sizzle

$sizzle : boolean

The sizzle property, specifies if advanced selectors are enabled(all jquery selectors will work).

Type

boolean

$fallback

$fallback : boolean

The fallback property, allows cjax to fallback on a small footprint on the page to be able to pass the pending data.

Cjax uses PHP sessions to pass data across, some times sessions fail or some setting on the server's cache. This may cause unexpected behavior, and could cause cjax not to able to pass the data - in that case. By setting $fallback to true, this behavior may be prevented.

Type

boolean

$caching

$caching : boolean

The caching property, bypasses fallback if true.

Don't turn on fallback and caching at the same time, do one of the two.

Type

boolean

$ajaxView

$ajaxView : boolean

The ajaxView property, allows the access to ajax.php from browser if true.

Otherwise it would only allow access to ajax request or inclusion.

Type

boolean

$debug

$debug : boolean

The debug property, specifies if javaScript debug information will display in firebug console.

Type

boolean

$ipDebug

$ipDebug : string

The ipDebug property, stores a list of IPs that debug mode is turned on.

Enter an IP below if you want to debug ONLY for this specific IP. You may also enter an array of IPs to allow debug mode for multiple IPs.

Type

string

$initUrl

$initUrl : string

The initUrl property, defines the init url for CJAX scripts.

$ajax->init() will print the script tags to include the framework. Generally you won't need to touch this. If you experience problems where the script path is not being set correctly. Or you are using very fancy URLs where the paths can be confusing, then you might find this helpful. This will help the framework find the correct path to the js file in a case where it cannot be found.

Type

string

$camelize

$camelize : boolean

The camelize property, determines whether to use camel case in class names.

Type

boolean

$camelizeUcfirst

$camelizeUcfirst : boolean

The camelizeUcfirst property, determines if first letter is capitalized if camelize is true.

Type

boolean

$uploadDir

$uploadDir : string

The uploadDir property, defines an optional default path for file uploading.

Uploading plugins may upload files with access to this default upload location. You can specify that path here, which may or may not end with a slash.

Type

string

Methods

__construct()

__construct(array  $array = array()) : \CJAX\Core\Ext

The constructor for Ext class, dynamically creates an object with its properties from an array parameter.

Parameters

array $array

Returns

\CJAX\Core\Ext

__get()

__get(string  $setting) : Mixed

The magic method __get, obtains a dynamically created property for Ext class if it exists.

Parameters

string $setting

Returns

Mixed

__set()

__set(string  $setting, mixed  $value) : void

The magic method __set, dynamically creates properties for Ext class.

Parameters

string $setting
mixed $value