class CanViewPermission extends AbstractCanViewPermission (View source)

A permission checking plugin for DataLists

Constants

IDENTIFIER

Methods

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

No description

protected
callable
getPermissionResolver()

No description

public
string
getIdentifier()

No description

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

No description

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

No description

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

No description

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

No description

Details

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

No description

Parameters

Field $field
Schema $schema
array $config

Return Value

void

protected callable getPermissionResolver()

No description

Return Value

callable

string getIdentifier()

No description

Return Value

string

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

No description

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)

No description

Parameters

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

Return Value

array

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

No description

Parameters

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

Return Value

object|null

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

No description

Parameters

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

Return Value

Filterable