Метод |
Описание |
|
__construct ( Jarves $jarves, Objects $objects, PageStack $pageStack, Cacher $cacher, ConditionOperator $conditionOperator ) |
ACL constructor. |
|
check ( ACLRequest $aclRequest ) : boolean |
|
|
getCaching ( ) : boolean |
Returns true if caching mechanism is activated. |
|
getItem ( string $object, integer $code ) : array |
Returns the acl infos for the specified id |
|
getListingCondition ( string $objectKey ) : Condition |
Get a condition object for item listings. |
|
getRules ( $objectKey, integer $mode = 1, integer | null $targetType = ACL::TARGET_TYPE_USER, integer | null $targetId = null ) : mixed |
Mode table: |
|
isDeletable ( string $objectKey, array $pk = null ) : boolean |
|
|
isUpdatable ( string $objectKey, array $pk = null ) : boolean |
|
|
normalizeCode ( &$code ) |
*
public function set($pType, $pTargetType, $pTargetId, $pCode, $pActions, $pWithSub)
{
self::normalizeCode($pCode);
$pType += 0;
$pTargetType += $pTargetType;
$pTargetId += $pTargetId;
$pCode = esc($pCode); |
|
removeObjectRules ( $objectKey ) |
|
|
setCaching ( $caching ) |
Activates or disables the caching mechanism. |
|
setObject ( $mode, $objectKey, $constraintType, $constraintCode, $withSub = false, $targetType, $targetId, $access, $fields = null ) |
|
|
setObjectList ( $objectKey, $targetType, $targetId, $access, $fields = null, $withSub = false ) |
*
public function checkRead($pObjectKey, $pObjectId, $pField = false)
{
return self::check($pObjectKey, $pObjectId, $pField, 2);
} |
|
setObjectListCondition ( $objectKey, $condition, $targetType, $targetId, $access, $fields = null, $withSub = false ) |
|
|
setObjectListExact ( $objectKey, $objectPk, $targetType, $targetId, $access, $fields = null, $withSub = false ) |
|
|
setObjectUpdate ( $objectKey, $targetType, $targetId, $access, $fields = null, $withSub = false ) |
|
|