Sunnysideup\SearchSimpleSmart\Model\SearchEngineDataObjectToBeIndexed
presents a list of dataobjects that need to be reindexed, because they have changed.
Once they have been indexed, they will be removed again.
Synopsis
class SearchEngineDataObjectToBeIndexed
extends DataObject
{
- // members
- private static string $table_name = 'SearchEngineDataObjectToBeIndexed';
- private static string $singular_name = 'To Be (re)Indexed';
- private static string $plural_name = 'To Be (re)Indexed';
- private static array $db = ;
- private static array $indexes = ;
- private static array $has_one = ;
- private static array $required_fields = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static array $casting = ;
- private static array $default_sort = ;
- private static bool $cron_job_running = false;
- private static array $_cache_for_items = ;
- // methods
- public void i18n_singular_name()
- public void i18n_plural_name()
- public boolean canCreate()
- public boolean canEdit()
- public boolean canDelete()
- public boolean canView()
- public string getTitle()
- public static SearchEngineDataObjectToBeIndexed add()
- public void IndexNow()
- public static DataList to_run()
- public void onBeforeDelete()
- public FieldList getCMSFields()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $_cache_for_items
- $casting — array
- $cron_job_running
—
Sunnysideup\SearchSimpleSmart\Model\bool
you must set this to true once you have your cron job up and running. - $db — array
- $default_sort — array
- $field_labels — array
- $has_one — array
- $indexes — array
- $plural_name — string
- $required_fields — array
- $searchable_fields
—
array
Defines a default list of filters for the search context - $singular_name — string
- $summary_fields — array
- $table_name
—
string
Defines the database table name
Methods
public
- IndexNow()
- add()
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields() — CMS Fields
- getTitle()
- i18n_plural_name()
- i18n_singular_name()
- onBeforeDelete() — Event handler called before deleting from the database.
- to_run() — returns all the items that are more than five minutes old