\Searchify
Synopsis
class Searchify
extends Object
{
- // methods
- public static Searchify inst()
- public void __construct()
- public $this setIndex()
- public Indextank_Index|null getIndex()
- public null addPage()
- public bool addPages()
- public bool removePage()
- public void removePages()
- public mixed search()
- public string getApiUrl()
- public array getIndexList()
- public static ArrayData config()
- public mixed discover()
- private $this setToast()
- public bool isPublishable()
- private DataObject getTopLevelParent()
- public void indexAll()
- public mixed getBlacklist()
- public bool isBlacklisted()
Hierarchy
Extends
- Object
Tasks
Line | Task |
---|---|
267+ | |
343+ | This accessor is incorrect, forClass('Searchify') wouldn't work though? |
Members
protected
- $client — Indextank_Api
- $index — Indextank_Index
Methods
private
- getTopLevelParent() — Recursively finds the very most top level parent of a Page
- setToast() — Sets the X-Status header which creates the toast-like popout notification
public
- __construct() — Searchify constructor.
- addPage() — Adds a page to the specified index
- addPages()
- config() — Fetch the Searchify configuration
- discover() — Discovers custom field names relevant to the PageType from the DB configuration, at the moment it only checks for HTMLText as anything else would be a gamble. Relationships are not respected.
- getApiUrl()
- getBlacklist() — Fetches page blacklist from configuration
- getIndex()
- getIndexList() — Returns a list of indexes from the API
- indexAll() — Indexes all publicly visible, published pages
- inst() — Get a singleton instance. Use the default Object functionality
- isBlacklisted() — Checks if a page type is blacklisted
- isPublishable() — Determines if a Page is publicly visible
- removePage() — Removes a page from the specified index
- removePages()
- search() — Searches the currently active index
- setIndex()