ACL Extension
0.3
|
Public Member Functions | |
afterSave () | |
afterDelete () | |
branchNodeSubTree ($source, $destination) | |
getDirectChildren () | |
getDirectParents () | |
__clone () |
Protected Member Functions | |
removeFullRecursively () | |
takeOverPermissions ($node) | |
takeOverSubTree (PmAclNode $node) | |
generateDirectChildrenCondition () | |
generateDirectParentCondition () |
Definition at line 11 of file AclNode.php.
|
abstract |
Reimplemented in PmAclNode.
afterDelete | ( | ) |
Runs post-deletion errands
Definition at line 35 of file AclNode.php.
afterSave | ( | ) |
This will take over the permissions of another node belonging to the same AclObject, if the record is a new one
Definition at line 16 of file AclNode.php.
|
abstract |
Copies all children of $source recursively into $destination This branching is necessary because: If an AclObject is a child of another one, every AclNode of the parent object has to have one AclNode of the child AclObject as it's child (this is due to the lookup-mechanism this extension uses) If a new AclNode is created (for example because the parent object itself joins another object), the subtree of an existing node is copied to the new node
In fact "copied" is the wrong term, because each node isn't cloned but a surrogate is created which is in fact another object - but a node of the same AclObject having the same children as the original one.
public
Reimplemented in PmAclNode.
|
abstractprotected |
Generates the condition matching the direct AclNodes of this node
Reimplemented in PmAclNode.
|
abstractprotected |
Generates the condition matching the direct parent AclNodes of this node
Reimplemented in PmAclNode.
getDirectChildren | ( | ) |
Returns all the direct children of the given Node
public
Definition at line 101 of file AclNode.php.
getDirectParents | ( | ) |
Returns the direct parent AclNodes of this node
public
AclNode | node |
Definition at line 113 of file AclNode.php.
|
abstractprotected |
Removes all child-nodes and their associated permissions
RuntimeException |
Reimplemented in PmAclNode.
|
abstractprotected |
|
protected |
Copies the subtree of the given other node of the same object to this new node
PmAclNode | $node | the node to take subtree from |
Definition at line 60 of file AclNode.php.