Diglin\Ricardo\Services\Search
Class Search
Synopsis
class Search
extends ServiceAbstract
{
- // Inherited constants from ServiceAbstract
- const TOKEN_TYPE_ANONYMOUS = 'anonymous';
- const TOKEN_TYPE_IDENTIFIED = 'identified';
- const TOKEN_TYPE_ANTIFORGERY = 'antiforgery';
- const TOKEN_TYPE_TEMPORARY = 'temporary';
- const TOKEN_TYPE_DEFAULT = '';
- // members
- protected string $_service = 'SearchService';
- protected string $_typeOfToken = self::TOKEN_TYPE_ANONYMOUS;
- // Inherited members from ServiceAbstract
- protected string $_service;
- protected string $_typeOfToken;
- // methods
- public array getCategoryBestMatch()
- public bool|array getCategoryBestMatchResult()
- // Inherited methods from ServiceAbstract
- public string getService()
- public string getTypeOfToken()
Hierarchy
Constants
Name | Value |
---|---|
TOKEN_TYPE_ANONYMOUS | 'anonymous' |
TOKEN_TYPE_IDENTIFIED | 'identified' |
TOKEN_TYPE_ANTIFORGERY | 'antiforgery' |
TOKEN_TYPE_TEMPORARY | 'temporary' |
TOKEN_TYPE_DEFAULT | '' |
Members
protected
- $_service — string
- $_service — string
- $_typeOfToken — string
- $_typeOfToken — string
Methods
public
- getCategoryBestMatch() — Get Category Best Match
- getCategoryBestMatchResult() — Get the best category result
Inherited from Diglin\Ricardo\Services\ServiceAbstract
public
- getService() — Get the current name of the API service
- getTypeOfToken() — Get the type of token needed for this service <pre> It can be: - anonymous - identified - antiforgery - empty </pre>
History
-
2015-04-02T18:36:19+02:00 (commit #38400aa)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add method and test to get best match category