\Searchable
Searchable - interface to implement in order to be a searchable DO
Originally created by Gabriele Brosulo <gabriele.brosulo@zirak.it>
- Author: Firebrand <developers@firebrand.nz>
Synopsis
interface Searchable
{
- // methods
- public static string getSearchFilter()
- public array getTitleFields()
- public array getContentFields()
- public SiteTree getOwner()
- public boolean IncludeInSearch()
Methods
public
- IncludeInSearch() — Whatever this specific Searchable should be included in search results.
- getContentFields() — Fields that compose the Content eg. array('Teaser', 'Content');
- getOwner() — Parent objects that should be displayed in search results.
- getSearchFilter() — Filter array eg. array('Disabled' => 0);
- getTitleFields() — Fields that compose the Title eg. array('Title', 'Subtitle');