PHP Class Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\PropertyConditionGenerator

Inheritance: implements Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$entityManager Doctrine\Common\Persistence\ObjectManager
$globalObjects array Array of registered global objects that can be accessed as operands
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$operand mixed
$operandDefinition string | array
$operator string
$parameters array Raw parameter values
$path string Property path the currently parsed expression relates to
$persistenceManager Neos\Flow\Persistence\Doctrine\PersistenceManager
$policyService Neos\Flow\Security\Policy\PolicyService
$securityContext Neos\Flow\Security\Context

Méthodes publiques

Méthode Description
__construct ( string $path )
equals ( string | array $operandDefinition ) : PropertyConditionGenerator
getObjectValueByPath ( mixed $object, string $path ) : mixed Redirects directly to \Neos\Utility\ObjectAccess::getPropertyPath($result, $propertyPath) This is only needed for unit tests!
getSql ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias ) : string
getValueForOperand ( mixed $expression ) : mixed Returns the static value of the given operand, this might be also a global object
greaterOrEqual ( mixed $operandDefinition ) : PropertyConditionGenerator
greaterThan ( mixed $operandDefinition ) : PropertyConditionGenerator
in ( mixed $operandDefinition ) : PropertyConditionGenerator
lessOrEqual ( mixed $operandDefinition ) : PropertyConditionGenerator
lessThan ( mixed $operandDefinition ) : PropertyConditionGenerator
like ( mixed $operandDefinition ) : PropertyConditionGenerator
notEquals ( string | array $operandDefinition ) : PropertyConditionGenerator

Méthodes protégées

Méthode Description
getConstraintStringForSimpleProperty ( SQLFilter $sqlFilter, string $propertyPointer, string $operandDefinition = null ) : string
getRawParameterValue ( mixed $name ) : mixed
getSqlForManyToOneAndOneToOneRelationsWithPropertyPath ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
getSqlForManyToOneAndOneToOneRelationsWithoutPropertyPath ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
getSqlForSimpleProperty ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
getSubselectQuery ( Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetEntityPropertyName ) : Query
setParameter ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, mixed $name, mixed $value, string $type = null ) : void

Method Details

__construct() public méthode

public __construct ( string $path )
$path string Property path the currently parsed expression relates to

equals() public méthode

public equals ( string | array $operandDefinition ) : PropertyConditionGenerator
$operandDefinition string | array
Résultat PropertyConditionGenerator the current instance to allow for method chaining

getConstraintStringForSimpleProperty() protected méthode

protected getConstraintStringForSimpleProperty ( SQLFilter $sqlFilter, string $propertyPointer, string $operandDefinition = null ) : string
$sqlFilter SQLFilter
$propertyPointer string
$operandDefinition string
Résultat string

getObjectValueByPath() public méthode

Redirects directly to \Neos\Utility\ObjectAccess::getPropertyPath($result, $propertyPath) This is only needed for unit tests!
public getObjectValueByPath ( mixed $object, string $path ) : mixed
$object mixed The object to fetch the property from
$path string The path to the property to be fetched
Résultat mixed The property value

getRawParameterValue() protected méthode

protected getRawParameterValue ( mixed $name ) : mixed
$name mixed
Résultat mixed the raw parameter value

getSql() public méthode

public getSql ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias ) : string
$sqlFilter Doctrine\ORM\Query\Filter\SQLFilter
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetTableAlias string
Résultat string

getSqlForManyToOneAndOneToOneRelationsWithPropertyPath() protected méthode

protected getSqlForManyToOneAndOneToOneRelationsWithPropertyPath ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
$sqlFilter Doctrine\ORM\Query\Filter\SQLFilter
$quoteStrategy Doctrine\ORM\Mapping\QuoteStrategy
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetTableAlias string
$targetEntityPropertyName string
Résultat string

getSqlForManyToOneAndOneToOneRelationsWithoutPropertyPath() protected méthode

protected getSqlForManyToOneAndOneToOneRelationsWithoutPropertyPath ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
$sqlFilter Doctrine\ORM\Query\Filter\SQLFilter
$quoteStrategy Doctrine\ORM\Mapping\QuoteStrategy
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetTableAlias string
$targetEntityPropertyName string
Résultat string

getSqlForSimpleProperty() protected méthode

protected getSqlForSimpleProperty ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, Doctrine\ORM\Mapping\QuoteStrategy $quoteStrategy, Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias, string $targetEntityPropertyName ) : string
$sqlFilter Doctrine\ORM\Query\Filter\SQLFilter
$quoteStrategy Doctrine\ORM\Mapping\QuoteStrategy
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetTableAlias string
$targetEntityPropertyName string
Résultat string

getSubselectQuery() protected méthode

protected getSubselectQuery ( Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetEntityPropertyName ) : Query
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetEntityPropertyName string
Résultat Neos\Flow\Persistence\Doctrine\Query

getValueForOperand() public méthode

Returns the static value of the given operand, this might be also a global object
public getValueForOperand ( mixed $expression ) : mixed
$expression mixed The expression string representing the operand
Résultat mixed The calculated value

greaterOrEqual() public méthode

public greaterOrEqual ( mixed $operandDefinition ) : PropertyConditionGenerator
$operandDefinition mixed
Résultat PropertyConditionGenerator the current instance to allow for method chaining

greaterThan() public méthode

public greaterThan ( mixed $operandDefinition ) : PropertyConditionGenerator
$operandDefinition mixed
Résultat PropertyConditionGenerator the current instance to allow for method chaining

in() public méthode

public in ( mixed $operandDefinition ) : PropertyConditionGenerator
$operandDefinition mixed
Résultat PropertyConditionGenerator the current instance to allow for method chaining

lessOrEqual() public méthode

public lessOrEqual ( mixed $operandDefinition ) : PropertyConditionGenerator
$operandDefinition mixed
Résultat PropertyConditionGenerator the current instance to allow for method chaining

lessThan() public méthode

public lessThan ( mixed $operandDefinition ) : PropertyConditionGenerator
$operandDefinition mixed
Résultat PropertyConditionGenerator the current instance to allow for method chaining

like() public méthode

public like ( mixed $operandDefinition ) : PropertyConditionGenerator
$operandDefinition mixed
Résultat PropertyConditionGenerator the current instance to allow for method chaining

notEquals() public méthode

public notEquals ( string | array $operandDefinition ) : PropertyConditionGenerator
$operandDefinition string | array
Résultat PropertyConditionGenerator the current instance to allow for method chaining

setParameter() protected méthode

protected setParameter ( Doctrine\ORM\Query\Filter\SQLFilter $sqlFilter, mixed $name, mixed $value, string $type = null ) : void
$sqlFilter Doctrine\ORM\Query\Filter\SQLFilter
$name mixed
$value mixed
$type string
Résultat void

Property Details

$entityManager protected_oe property

protected ObjectManager,Doctrine\Common\Persistence $entityManager
Résultat Doctrine\Common\Persistence\ObjectManager

$globalObjects protected_oe property

Array of registered global objects that can be accessed as operands
protected array $globalObjects
Résultat array

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$operand protected_oe property

protected mixed $operand
Résultat mixed

$operandDefinition protected_oe property

protected string|array $operandDefinition
Résultat string | array

$operator protected_oe property

protected string $operator
Résultat string

$parameters protected_oe property

Raw parameter values
protected array $parameters
Résultat array

$path protected_oe property

Property path the currently parsed expression relates to
protected string $path
Résultat string

$persistenceManager protected_oe property

protected PersistenceManager,Neos\Flow\Persistence\Doctrine $persistenceManager
Résultat Neos\Flow\Persistence\Doctrine\PersistenceManager

$policyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy $policyService
Résultat Neos\Flow\Security\Policy\PolicyService

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
Résultat Neos\Flow\Security\Context