Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Create and send autocompletion lists

direct(
mixed $data, bool $sendNow
=
true, bool $keepLayouts
=
false
)
:
string|void
Strategy pattern: allow calling helper as broker method
Prepares autocompletion data and, if $sendNow is true, immediately sends response.
Name | Type | Description |
---|---|---|
$data | mixed | |
$sendNow | bool | |
$keepLayouts | bool |
Type | Description |
---|---|
string|void |

disableLayouts(
)
:
\Zend_Controller_Action_Helper_AutoComplete_Abstract
Disable layouts and view renderer
Type | Description |
---|---|
\Zend_Controller_Action_Helper_AutoComplete_Abstract | Provides a fluent interface |

encodeJson(
mixed $data, bool $keepLayouts
=
false
)
:
string
Encode data to JSON
Name | Type | Description |
---|---|---|
$data | mixed | |
$keepLayouts | bool |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Controller_Action_Exception |

prepareAutoCompletion(
mixed $data, boolean $keepLayouts
=
false
)
:
mixed
Prepare autocompletion data
Name | Type | Description |
---|---|---|
$data | mixed | |
$keepLayouts | boolean |
Type | Description |
---|---|
mixed |

sendAutoCompletion(
mixed $data, bool $keepLayouts
=
false
)
:
string|void
Send autocompletion data
Calls prepareAutoCompletion, populates response body with this information, and sends response.
Name | Type | Description |
---|---|---|
$data | mixed | |
$keepLayouts | bool |
Type | Description |
---|---|
string|void |