PHP Класс GraphQL\Validator\Rules\AbstractQuerySecurity

Показать файл Открыть проект

Защищенные методы

Метод Описание
checkIfGreaterOrEqualToZero ( $name, $value ) check if equal to 0 no check is done. Must be greater or equal to 0.
collectFieldASTsAndDefs ( ValidationContext $context, Type | null $parentType, SelectionSetNode $selectionSet, ArrayObject $visitedFragmentNames = null, ArrayObject $astAndDefs = null ) : ArrayObject Given a selectionSet, adds all of the fields in that selection to the passed in map of fields, and returns it at the end.
gatherFragmentDefinition ( ValidationContext $context )
getFieldName ( FieldNode $node )
getFragment ( FragmentSpreadNode $fragmentSpread )
getFragments ( ) : FragmentDefinitionNode[]
invokeIfNeeded ( ValidationContext $context, array $validators )
isEnabled ( )

Описание методов

checkIfGreaterOrEqualToZero() защищенный Метод

check if equal to 0 no check is done. Must be greater or equal to 0.
protected checkIfGreaterOrEqualToZero ( $name, $value )
$value

collectFieldASTsAndDefs() защищенный Метод

Note: This is not the same as execution's collectFields because at static time we do not know what object type will be used, so we unconditionally spread in all fragments.
См. также: GraphQL\Validator\Rules\OverlappingFieldsCanBeMerged
protected collectFieldASTsAndDefs ( ValidationContext $context, Type | null $parentType, SelectionSetNode $selectionSet, ArrayObject $visitedFragmentNames = null, ArrayObject $astAndDefs = null ) : ArrayObject
$context GraphQL\Validator\ValidationContext
$parentType GraphQL\Type\Definition\Type | null
$selectionSet GraphQL\Language\AST\SelectionSetNode
$visitedFragmentNames ArrayObject
$astAndDefs ArrayObject
Результат ArrayObject

gatherFragmentDefinition() защищенный Метод

protected gatherFragmentDefinition ( ValidationContext $context )
$context GraphQL\Validator\ValidationContext

getFieldName() защищенный Метод

protected getFieldName ( FieldNode $node )
$node GraphQL\Language\AST\FieldNode

getFragment() защищенный Метод

protected getFragment ( FragmentSpreadNode $fragmentSpread )
$fragmentSpread GraphQL\Language\AST\FragmentSpreadNode

getFragments() защищенный Метод

protected getFragments ( ) : FragmentDefinitionNode[]
Результат GraphQL\Language\AST\FragmentDefinitionNode[]

invokeIfNeeded() защищенный Метод

protected invokeIfNeeded ( ValidationContext $context, array $validators )
$context GraphQL\Validator\ValidationContext
$validators array

isEnabled() абстрактный защищенный Метод

abstract protected isEnabled ( )