\SearchHistory
a log history and counted history of searches done (e.g. 100 people searched for "sunshine") it allows gives the opportunity to link zero or more pages to a particular search phrase
- Author: : nicolaas[at]sunnysideup.co.nz
Synopsis
class SearchHistory
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static string $singular_name = 'Search History Phrase';
- private static string $plural_name = 'Search History Phrases';
- private static string $default_sort = 'Title';
- private static string $separator = " | ";
- private static integer $minimum_length = 3;
- private static integer $number_of_keyword_repeats = 3;
- private static array $searchable_fields = ;
- private static array $summary_fields = ;
- private static array $field_labels = ;
- // methods
- public static void add_entry()
- public static void find_entry()
- public static void clean_keywordstring()
- public void getCMSFields()
- public void onAfterWrite()
- public void requireDefaultRecords()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $field_labels
- $has_many
- $many_many
- $minimum_length
- $number_of_keyword_repeats
- $plural_name
- $searchable_fields
- $separator
- $singular_name
- $summary_fields