class Resolver (View source)

Generic resolver for DataObjects

Methods

static array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null
resolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)

No description

static array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null
baseResolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)

Just the basic ViewableData field accessor bit, without all the property mapping overhead. Useful for custom dataobject types that circumvent the model layer.

static mixed|null
getResolvedField($obj, string $fieldName, SchemaConfig $config)

No description

Details

static array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null resolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)

Parameters

DataObject $obj
array $args
array $context
ResolveInfo|null $info

Return Value

array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null

Exceptions

SchemaBuilderException

static array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null baseResolve(DataObject $obj, array $args = [], array $context = [], ResolveInfo|null $info = null)

Just the basic ViewableData field accessor bit, without all the property mapping overhead. Useful for custom dataobject types that circumvent the model layer.

Parameters

DataObject $obj
array $args
array $context
ResolveInfo|null $info

Return Value

array|bool|int|mixed|DataList|DataObject|DBField|SS_List|string|null

static mixed|null getResolvedField($obj, string $fieldName, SchemaConfig $config)

Parameters

$obj
string $fieldName
SchemaConfig $config

Return Value

mixed|null

Exceptions

SchemaBuilderException