\Ceo\SearchResult

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.

Summary

Methods
Properties
Constants
getSearchTitle()
getSearchType()
getSearchDate()
getSearchPreview()
getSearchUrl()
getSearchPreviewUrl()
__construct()
fromSphinx()
getTitle()
getType()
getPreview()
jsonSerialize()
count()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$attrs
N/A

Properties

$attrs

$attrs : 

Type

Methods

getSearchTitle()

getSearchTitle() : string

Determine the search title for an item

Returns

string

getSearchType()

getSearchType() : string

Determine the model type

Returns

string

getSearchDate()

getSearchDate() : \Ceo\Search\DateTime

Return the published_at DateTime

Returns

\Ceo\Search\DateTime

getSearchPreview()

getSearchPreview() : string

Determine the preview text

Returns

string

getSearchUrl()

getSearchUrl() : string

Return searchUrl

Returns

string

getSearchPreviewUrl()

getSearchPreviewUrl() : boolean

Return searchPreviewUrl Always returns false

Returns

boolean

__construct()

__construct(  $attrs = array()) 

Parameters

$attrs

fromSphinx()

fromSphinx(array  $match) : self

Build result from a Sphinx match.

Expected to be in the form of

array(
 'attrs' => ...
)

Parameters

array $match

Returns

self

getTitle()

getTitle() : string

Return searchTitle

Returns

string

getType()

getType() : string

Return searchType

Returns

string

getPreview()

getPreview() : string

Return searchPreview

Returns

string

jsonSerialize()

jsonSerialize() : array

Implements json_serialize for search results

Returns

array

count()

count()