class CanViewPermission extends AbstractCanViewPermission (View source)

A permission checking plugin for DataLists

Constants

IDENTIFIER

Methods

void
apply(Field $field, Schema $schema, array $config = [])

No description

string
getIdentifier()

No description

static Filterable|object|array|null
permissionCheck(mixed $obj, array $args, array $context, ResolveInfo $info)

No description

static array
paginatedPermissionCheck(array $obj, array $args, array $context, ResolveInfo $info)

No description

static object|null
itemPermissionCheck(mixed $obj, array $args, array $context, ResolveInfo $info)

No description

static Filterable
listPermissionCheck(Filterable $obj, array $args, array $context, ResolveInfo $info)

No description

Details

void apply(Field $field, Schema $schema, array $config = [])

Parameters

Field $field
Schema $schema
array $config

Return Value

void

string getIdentifier()

Return Value

string

static Filterable|object|array|null permissionCheck(mixed $obj, array $args, array $context, ResolveInfo $info)

Parameters

mixed $obj
array $args
array $context
ResolveInfo $info

Return Value

Filterable|object|array|null

Exceptions

InvalidArgumentException

static array paginatedPermissionCheck(array $obj, array $args, array $context, ResolveInfo $info)

Parameters

array $obj
array $args
array $context
ResolveInfo $info

Return Value

array

static object|null itemPermissionCheck(mixed $obj, array $args, array $context, ResolveInfo $info)

Parameters

mixed $obj
array $args
array $context
ResolveInfo $info

Return Value

object|null

static Filterable listPermissionCheck(Filterable $obj, array $args, array $context, ResolveInfo $info)

Parameters

Filterable $obj
array $args
array $context
ResolveInfo $info

Return Value

Filterable