\Ceo\TraitsSearchable

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

Summary

Methods
Properties
Constants
getSearchTitle()
getSearchType()
getSearchDate()
getSearchPreview()
getSearchUrl()
getSearchPreviewUrl()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

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\Traits\DateTime

Determine the display time

Returns

\Ceo\Traits\DateTime —

Carbon

getSearchPreview()

getSearchPreview() : string

Determine the preview text

Returns

string

getSearchUrl()

getSearchUrl() : string

Determine the canonical url

Returns

string

getSearchPreviewUrl()

getSearchPreviewUrl() : mixed

Determine the preview image, if there is one FALSE otherwise

Returns

mixed —

STRING or BOOLEAN