Create and send autocompletion lists

uses
category Zend
package Zend_Controller
subpackage Zend_Controller_Action_Helper
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Controller_Action_Helper_Abstract

 Methods

Strategy pattern: allow calling helper as broker method

direct(mixed $data, boolean $sendNow = true, boolean $keepLayouts = false) : string | void

Prepares autocompletion data and, if $sendNow is true, immediately sends response.

Parameters

$data

mixed

$sendNow

boolean

$keepLayouts

boolean

Returns

stringvoid

Disable layouts and view renderer

disableLayouts() : \Zend_Controller_Action_Helper_AutoComplete_Abstract

Returns

\Zend_Controller_Action_Helper_AutoComplete_AbstractProvides a fluent interface

Encode data to JSON

encodeJson(mixed $data, boolean $keepLayouts = false) : string

Parameters

$data

mixed

$keepLayouts

boolean

Exceptions

\Zend_Controller_Action_Exception

Returns

string

Retrieve current action controller

getActionController() : \Zend_Controller_Action
Inherited

Returns

\Zend_Controller_Action

Retrieve front controller instance

getFrontController() : \Zend_Controller_Front
Inherited

Returns

\Zend_Controller_Front

getName()

getName() : string
Inherited

Returns

string

getRequest() -

getRequest() : \Zend_Controller_Request_Abstract
Inherited

Returns

\Zend_Controller_Request_Abstract$request

getResponse() -

getResponse() : \Zend_Controller_Response_Abstract
Inherited

Returns

\Zend_Controller_Response_Abstract$response

Hook into action controller initialization

init() : void
Inherited

Hook into action controller postDispatch() workflow

postDispatch() : void
Inherited

Hook into action controller preDispatch() workflow

preDispatch() : void
Inherited

Prepare autocompletion data

prepareAutoCompletion(mixed $data, boolean $keepLayouts = false) : mixed

Parameters

$data

mixed

$keepLayouts

boolean

Returns

mixed

Send autocompletion data

sendAutoCompletion(mixed $data, boolean $keepLayouts = false) : string | void

Calls prepareAutoCompletion, populates response body with this information, and sends response.

Parameters

$data

mixed

$keepLayouts

boolean

Returns

stringvoid

setActionController()

setActionController(\Zend_Controller_Action $actionController = null) : \Zend_Controller_ActionHelper_Abstract
Inherited

Parameters

$actionController

\Zend_Controller_Action

Returns

\Zend_Controller_ActionHelper_AbstractProvides a fluent interface

Validate autocompletion data

validateData(mixed $data) : boolean

Parameters

$data

mixed

Returns

boolean

 Properties

 

Suppress exit when sendJson() called

$suppressExit : boolean

Default

false
 

$_actionController

$_actionController : \Zend_Controller_Action

Default

null
 

$_frontController

$_frontController : mixed

Default

null