PHP Class Horde_Core_Ajax_Imple, horde
Copyright 2005-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.
Afficher le fichier
Open project: horde/horde
Class Usage Examples
Protected Properties
Méthodes publiques
Méthode |
Description |
|
__construct ( array $params = [] ) |
Constructor. |
|
attach ( ) |
Attach the object to a javascript event. |
|
getDomId ( ) : string |
Return the DOM ID this Imple is attached to. |
|
getImpleUrl ( ) : Horde_Url |
The URL to the imple AJAX endpoint. This should only be used if the
javascript code. |
|
handle ( Horde_Variables $vars ) : mixed |
Imple handler. |
|
Méthodes protégées
Method Details
__construct()
public méthode
public __construct ( array $params = [] ) |
$params |
array |
Configuration parameters:
- id: (string) [OPTIONAL] The DOM ID to attach to. |
_attach()
abstract protected méthode
Attach the object to a javascript event.
abstract protected _attach ( boolean $init ) : mixed |
$init |
boolean |
Is this the first time this imple has been
initialized? |
Résultat |
mixed |
An array of javascript parameters. If false, the imple
handler will ignore this instance (calling code will be
responsible for calling imple endpoint). |
_handle()
abstract protected méthode
abstract protected _handle ( Horde_Variables $vars ) : mixed |
$vars |
Horde_Variables |
A variables object. |
Résultat |
mixed |
Data to return to the browser. |
_impleParams()
final protected méthode
Add the necessary parameters to the imple AJAX request.
_jsOnComplete()
protected méthode
e.memo contains the AJAX response.
_jsOnDoAction()
protected méthode
e.memo contains the list of URL parameters.
Attach the object to a javascript event.
getDomId()
public méthode
Return the DOM ID this Imple is attached to.
getImpleUrl()
final public méthode
The URL to the imple AJAX endpoint. This should only be used if the
javascript code.
final public getImpleUrl ( ) : Horde_Url |
Résultat |
Horde_Url |
URL to the AJAX endpoint. |
public handle ( Horde_Variables $vars ) : mixed |
$vars |
Horde_Variables |
A variables object. |
Résultat |
mixed |
Data to return to the browser. |
Property Details
$_auth protected_oe property
Does this imple require authentication?
protected bool $_auth |
Résultat |
boolean |
|
$_domid protected_oe static_oe property
DOM ID incrementer. Shared by all Imple instances.
protected static int $_domid |
Résultat |
integer |
|
$_init protected_oe property
Has this imple been initialized?
protected bool $_init |
Résultat |
boolean |
|
$_observe protected_oe property
The javascript event to observe.
protected string $_observe |
Résultat |
string |
|
$_params protected_oe property
Parameters needed by the subclasses.
protected array $_params |
Résultat |
array |
|