SilverCart\Model\SearchQuery
A search query.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class SearchQuery
extends DataObject
{
- // members
- private static array $db = ;
- private static string $table_name = 'SilvercartSearchQuery';
- // methods
- public static SearchQuery get_by_query()
- public static SearchQuery update_by_query()
- public static DataList get_most_searched()
- public string Link()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
—
array
ORM attributes - $table_name
—
string
DB table name
Methods
public
- Link() — Returns a link to trigger the search with this query
- get_by_query() — Returns a SearchQuery with the given query. Creates one, if not exists.
- get_most_searched() — Returns a SearchQuery with the given query. Creates one, if not exists.
- update_by_query() — Updates the SearchQuery with the given query. Creates one, if not exists.