AbstractNodePropertyPrivilege
abstract class AbstractNodePropertyPrivilege extends AbstractNodePrivilege (View source)
Base class for privileges restricting node properties.
Properties
protected CompilingEvaluator | $eelCompilingEvaluator | from AbstractNodePrivilege | |
protected string | $nodeContextClassName | ||
protected PropertyAwareNodePrivilegeContext | $nodeContext | ||
protected MethodPrivilegeInterface | $methodPrivilege | from AbstractNodePrivilege | |
protected bool | $initialized | from AbstractNodePrivilege | |
protected array | $methodNameToPropertyMapping | With this mapping we can treat methods like properties. E.g. we want to be able to have a property "hidden" even though there is no real property called like this. Instead the set/getHidden() methods should match this "property". |
Methods
__construct(PrivilegeTarget $privilegeTarget, string $matcher, string $permission, $parameters)
Constructor
bool
matchesSubject(PrivilegeSubjectInterface $subject)
No description
mixed
evaluateNodeContext()
Evaluates the matcher with this objects nodeContext and returns the result.
array
getNodePropertyNames()
No description
Details
__construct(PrivilegeTarget $privilegeTarget, string $matcher, string $permission, $parameters)
Constructor
void
initialize()
No description
protected void
buildCacheEntryIdentifier()
No description
string
getCacheEntryIdentifier()
Unique identifier of this privilege
bool
matchesSubject(PrivilegeSubjectInterface $subject)
No description
bool
matchesMethod(string $className, string $methodName)
No description
PointcutFilterInterface
getPointcutFilterComposite()
No description
protected
initializeMethodPrivilege()
No description
protected mixed
evaluateNodeContext()
Evaluates the matcher with this objects nodeContext and returns the result.
abstract protected string
buildMethodPrivilegeMatcher()
No description
array
getNodePropertyNames()
No description