SilverStripe solr Search

DataResolveTrait

Trait ResolveTrait All resolver methods for the DataResolver

Table of Contents

Properties

$columnName  : mixed|string|null
Column to resolve
$columns  : array<string|int, mixed>
Columns to resolve
$component  : DataObject|ArrayList|SS_List|DBField
Component to resolve
$shortName  : string
ShortName of a class

Methods

cannotIdentifyException()  : void
Each class using this trait should have a way to throw unidentifiable objects or items
checkHasMethod()  : null|mixed|string
Check if a component has the method instead of it being a property
getFieldValue()  : mixed
Get the value for a field
getMethodValue()  : mixed
Get the value for a method
resolveArrayData()  : mixed
Resolves an ArrayData value
resolveDataObject()  : mixed
Resolves a DataObject value
resolveField()  : mixed
Resolves a Single field in the database.
resolveList()  : array<string|int, mixed>|mixed
Resolves a DataList values

Properties

$columnName

Column to resolve

protected mixed|string|null $columnName = ''

$columns

Columns to resolve

protected array<string|int, mixed> $columns = []

$component

Component to resolve

protected DataObject|ArrayList|SS_List|DBField $component

Methods

cannotIdentifyException()

Each class using this trait should have a way to throw unidentifiable objects or items

protected abstract cannotIdentifyException(DataObject|ArrayData|SS_List $component[, array<string|int, mixed> $columns = [] ]) : void
Parameters
$component : DataObject|ArrayData|SS_List
$columns : array<string|int, mixed> = []
Tags
throws
LogicException

checkHasMethod()

Check if a component has the method instead of it being a property

protected checkHasMethod() : null|mixed|string
Tags
throws
LogicException
Return values
null|mixed|string

getFieldValue()

Get the value for a field

protected getFieldValue() : mixed

getMethodValue()

Get the value for a method

protected getMethodValue() : mixed

resolveArrayData()

Resolves an ArrayData value

protected resolveArrayData() : mixed
Tags
throws
LogicException

resolveDataObject()

Resolves a DataObject value

protected resolveDataObject() : mixed
Tags
throws
LogicException

resolveField()

Resolves a Single field in the database.

protected resolveField() : mixed
Tags
throws
LogicException

resolveList()

Resolves a DataList values

protected resolveList() : array<string|int, mixed>|mixed
Tags
throws
LogicException
Return values
array<string|int, mixed>|mixed

        
On this page

Search results