Documentation

Ajax
in package

AbstractYes

Table of Contents

Properties

$commands  : mixed
$fd  : mixed
$input  : mixed

Methods

__call()  : mixed
Proxy to handle all commands needed to be added into the command chain.
__construct()  : mixed
addCommand()  : mixed
Allows caller to add commands to the ajax response chain
execute()  : mixed
Implemented by child class to implement their own execution methods
isAjaxRequest()  : mixed
Determines if the current request is an ajax request
isValidNamespace()  : mixed
Determines if the current namespace is a valid namespace
process()  : mixed
Processes ajax calls made on the site
send()  : mixed
Sends a response back to the request

Properties

$commands

protected mixed $commands = []

$fd

private mixed $fd = null

$input

private mixed $input = null

Methods

__call()

Proxy to handle all commands needed to be added into the command chain.

public __call(mixed $method, mixed $args) : mixed

e.g: success / fail / script

Parameters
$method : mixed
$args : mixed
Tags
since
1.0.0
access

public

__construct()

public __construct(mixed $fd) : mixed
Parameters
$fd : mixed

addCommand()

Allows caller to add commands to the ajax response chain

public addCommand(mixed $type, mixed &$data) : mixed
Parameters
$type : mixed
$data : mixed
Tags
since
1.0.0
access

public

execute()

Implemented by child class to implement their own execution methods

public abstract execute(mixed $namespace) : mixed
Parameters
$namespace : mixed
Tags
since
1.0.0
access

public

isAjaxRequest()

Determines if the current request is an ajax request

public isAjaxRequest(mixed $namespace) : mixed
Parameters
$namespace : mixed
Tags
since
1.0.0
access

public

isValidNamespace()

Determines if the current namespace is a valid namespace

public abstract isValidNamespace(mixed $namespace) : mixed
Parameters
$namespace : mixed
Tags
since
1.0.0
access

public

process()

Processes ajax calls made on the site

public process() : mixed
Tags
since
1.0.0
access

public

send()

Sends a response back to the request

public send() : mixed
Tags
since
1.0.0
access

public


        
On this page

Search results