\PopulateSearch
Ricrea la tabella di ricerca ad ogni esecuzione, e la popola con i dati prelevati dai DataObject
- Author: Gabriele Brosulo <gabriele.brosulo@zirak.it>
Synopsis
class PopulateSearch
extends BuildTask
{
- // members
- protected string $title = 'Populate Search';
- protected string $description = 'Re-create the search table at each run, and populate it with the data from the DataObject.';
- // methods
- private void clearTable()
- public static void insert()
- public static void insertPage()
- private static void storeData()
- public void run()
Hierarchy
Extends
- BuildTask
Members
protected
- $description — string
- $title — string
Methods
private
- clearTable() — DB initalization
- storeData() — Escape the data and store to the database
public
- insert() — Refactor the DataObject in order to match with SearchableDataObjects table and insert it into the database
- insertPage() — Clean page's title and content and insert it into SearchableDataObjects
- run() — Task run