class Resolver (View source)

Generic resolver for DataObjects

Methods

public 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

public 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.

public 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)

No description

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)

No description

Parameters

$obj
string $fieldName
SchemaConfig $config

Return Value

mixed|null

Exceptions

SchemaBuilderException