\ZendSearchLuceneContentController
Extension to provide a search interface when applied to ContentController.
- Author: Darren Inwood <darren.inwood@chrometoaster.com>
Synopsis
class ZendSearchLuceneContentController
extends Extension
{
- // members
- public static array $allowed_actions = ;
- // methods
- public Form ZendSearchLuceneForm()
- public String ZendSearchLuceneResults()
- public void results()
- public String SearchForm()
- protected Array getDataArrayFromHits()
Hierarchy
Extends
- Extension
Members
public
-
$allowed_actions
Enables the search form to talk to the controller.
Methods
protected
- getDataArrayFromHits() — Returns a data array suitable for customising a Page with, containing search result and pagination information.
public
- SearchForm() — Makes $SearchForm included in many stock templates return a Lucene form analogous to the one that the FulltextSearchable extension outputs. Uses the SearchForm.ss template that comes with Sapphire (or an overridden custom version if one is available, as per the regular SearchForm).
- ZendSearchLuceneForm() — Returns the Lucene-powered search Form object.
- ZendSearchLuceneResults() — Process and render search results. Uses the Lucene_results.ss template to render the form.
- results() — Wrapper around ZendSearchLuceneResults, for when we are using $SearchForm in templates.