class Result extends Plugin implements JsonSerializable, Countable

Basic result class. This object is substituted for a CEO model if the content object isn't found. This can happen if the content hasn't been synced in some time.

Traits

Searchable trait simplifies the handling of the display of search results on a model

Methods

string
getSearchTitle()

Determine the search title for an item

string
getSearchType()

Determine the model type

DateTime
getSearchDate()

Return the published_at DateTime

string
getSearchPreview()

Determine the preview text

string
getSearchUrl()

Return searchUrl

boolean
getSearchPreviewUrl()

Return searchPreviewUrl Always returns false

__construct($attrs = [])

No description

fromSphinx(array $match)

Build result from a Sphinx match.

string
getTitle()

Return searchTitle

string
getType()

Return searchType

string
getPreview()

Return searchPreview

array
jsonSerialize()

Implements json_serialize for search results

count()

No description

Details

in Searchable at line 17
string getSearchTitle()

Determine the search title for an item

Return Value

string

in Searchable at line 40
string getSearchType()

Determine the model type

Return Value

string

at line 99
DateTime getSearchDate()

Return the published_at DateTime

Return Value

DateTime

in Searchable at line 81
string getSearchPreview()

Determine the preview text

Return Value

string

at line 80
string getSearchUrl()

Return searchUrl

Return Value

string

at line 90
boolean getSearchPreviewUrl()

Return searchPreviewUrl Always returns false

Return Value

boolean

at line 22
__construct($attrs = [])

Parameters

$attrs

at line 38
Result fromSphinx(array $match)

Build result from a Sphinx match.

Expected to be in the form of

array(
 'attrs' => ...
)

Parameters

array $match

Return Value

Result

at line 48
string getTitle()

Return searchTitle

Return Value

string

at line 57
string getType()

Return searchType

Return Value

string

at line 66
string getPreview()

Return searchPreview

Return Value

string

at line 109
array jsonSerialize()

Implements json_serialize for search results

Return Value

array

at line 120
count()