PHP 클래스 Horde_Core_Ajax_Application, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$data mixed The data returned from the doAction() call.
$tasks object The list of (possibly) unsolicited tasks/data to do for this request.

보호된 프로퍼티들

프로퍼티 타입 설명
$_action string The action to perform.
$_app string The Horde application.
$_handlers array AJAX method handlers.
$_vars Horde_Variables The request variables.

공개 메소드들

메소드 설명
__construct ( string $app, Horde_Variables $vars, string $action = null, string $token = null ) Constructor.
__get ( $name )
addHandler ( string $class ) : Horde_Core_Ajax_Application_Handler Add an AJAX method handler.
addTask ( string $name, mixed $data, string $app = null ) Add task to response data.
callAction ( string $action ) : mixed Explicitly call an action.
doAction ( ) Performs the AJAX action. The AJAX action should return either raw data (which will be output to the browser to be parsed by the HordeCore JS framework), or a Horde_Ajax_Core_Response object, which will be sent unaltered.
send ( ) Send AJAX response to the browser.

보호된 메소드들

메소드 설명
_getHandler ( ) : mixed Return the Handler for the current action.
_init ( ) Application initialization code.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $app, Horde_Variables $vars, string $action = null, string $token = null )
$app string The application name.
$vars Horde_Variables Form/request data.
$action string The AJAX action to perform.
$token string Session token.

__get() 공개 메소드

public __get ( $name )

_getHandler() 보호된 메소드

Return the Handler for the current action.
protected _getHandler ( ) : mixed
리턴 mixed A Horde_Core_Ajax_Application_Handler object, or null if handler is not found.

_init() 보호된 메소드

Application initialization code.
protected _init ( )

addHandler() 최종 공개 메소드

Add an AJAX method handler.
final public addHandler ( string $class ) : Horde_Core_Ajax_Application_Handler
$class string Classname of a Handler to add.
리턴 Horde_Core_Ajax_Application_Handler Handler object.

addTask() 공개 메소드

Add task to response data.
public addTask ( string $name, mixed $data, string $app = null )
$name string Task name.
$data mixed Task data.
$app string Overwrite default application (since 2.5.0).

callAction() 공개 메소드

Explicitly call an action.
부터: 2.5.0
public callAction ( string $action ) : mixed
$action string The action to call.
리턴 mixed The response from the called action.

doAction() 공개 메소드

Performs the AJAX action. The AJAX action should return either raw data (which will be output to the browser to be parsed by the HordeCore JS framework), or a Horde_Ajax_Core_Response object, which will be sent unaltered.
public doAction ( )

send() 공개 메소드

Send AJAX response to the browser.
public send ( )

프로퍼티 상세

$_action 보호되어 있는 프로퍼티

The action to perform.
protected string $_action
리턴 string

$_app 보호되어 있는 프로퍼티

The Horde application.
protected string $_app
리턴 string

$_handlers 보호되어 있는 프로퍼티

AJAX method handlers.
protected array $_handlers
리턴 array

$_vars 보호되어 있는 프로퍼티

The request variables.
protected Horde_Variables $_vars
리턴 Horde_Variables

$data 공개적으로 프로퍼티

The data returned from the doAction() call.
public mixed $data
리턴 mixed

$tasks 공개적으로 프로퍼티

The list of (possibly) unsolicited tasks/data to do for this request.
public object $tasks
리턴 object