ACL Extension
0.3
|
Public Member Functions | |
getFreeNodes () | |
getPaths () | |
fetchComprisedPositions () | |
addPositionCheck ($positions, $type, $table= 't') | |
getDirectChildNodes (AclObject $child=NULL) | |
getDirectParentNodes (AclObject $parent=NULL) | |
beforeDelete () | |
join ($obj) | |
leave ($obj) | |
is ($obj) | |
![]() | |
getChildObjects () | |
getParentObjects () | |
loadObject ($identifier, $model=NULL) | |
loadObjects ($identifier, $model=NULL, $onlyFirst=true) | |
getNodes () | |
afterSave () | |
getAssociatedObject () |
Static Public Member Functions | |
static | buildTreeQueryCondition ($source, $destination, $disableInheritance=false) |
![]() | |
static | loadObjectStatic ($identifier, $model) |
static | loadObjectsStatic ($identifier, $model=NULL, $onlyFirst=true) |
Protected Member Functions | |
createNode ($parent=NULL) | |
![]() | |
beforeJoin (&$obj) | |
beforeLeave (&$obj) | |
beforeIs (&$obj) | |
assureSaved () | |
assureSafety (&$obj) |
Definition at line 12 of file PmAclObject.php.
addPositionCheck | ( | $positions, | |
$type, | |||
$table = 't' |
|||
) |
Builds a single SQL-statement comprising all given positions and their parents This SQL-statement will match all those rows being located above the given positions including themselves
array | $positions | All positions to include in our statement |
string | $type | aco/aro |
string | $table | the table comprising the map between objects and permissions |
Reimplemented from AclObject.
Definition at line 86 of file PmAclObject.php.
beforeDelete | ( | ) |
Processes post-deletion tasks
Definition at line 204 of file PmAclObject.php.
|
static |
Builds (string) condition which matches all destinations, which are children of source field should be either aco or aro
array | $source | array('field' => '', 'table' => '') |
array | $destination | array('field' => '', 'table' => '') |
boolean | $disableInheritance | if set to true, no inheritance will be used, that means no node will acquire the rights of it's parent |
Definition at line 54 of file PmAclObject.php.
|
protected |
Creates a new node of this collection This new node will be a children of the given AclNode
AclNode | $parent | parent of the new node, if NULL, it has no parent |
Reimplemented from AclObject.
Definition at line 108 of file PmAclObject.php.
fetchComprisedPositions | ( | ) |
Fetches and returns positions of all nodes of this object which denote them In this case, it's really easy because we've done that anyway :)
Reimplemented from AclObject.
Definition at line 74 of file PmAclObject.php.
getDirectChildNodes | ( | AclObject | $child = NULL | ) |
Returns all of the (direct) AclNodes whose parent AclNode is a node of this AclObject.
If the $child AclObject is specified, only nodes having the given AclObject as owner will be returned.
public
AclObject | child |
Integer |
Reimplemented from AclObject.
Definition at line 139 of file PmAclObject.php.
getDirectParentNodes | ( | AclObject | $parent = NULL | ) |
Returns all of the (direct) AclNodes whose child AclNode is a node of this AclObject.
If the $child AclObject is specified, only nodes having the given AclObject as owner will be returned.
public
AclObject | child |
Integer |
Reimplemented from AclObject.
Definition at line 174 of file PmAclObject.php.
getFreeNodes | ( | ) |
Returns all of the AclNodes of this object which do not have a parent yet
public
AclObject | object |
Reimplemented from AclObject.
Definition at line 22 of file PmAclObject.php.
getPaths | ( | ) |
Fetches all Paths of the nodes of this object
Definition at line 33 of file PmAclObject.php.
is | ( | $obj | ) |
Checks whether this object is somehow a child of the given object
mixed | $obj |
Reimplemented from AclObject.
Definition at line 290 of file PmAclObject.php.
join | ( | $obj | ) |
Joins the given object (now called: group)
mixed | $obj |
Reimplemented from AclObject.
Definition at line 230 of file PmAclObject.php.
leave | ( | $obj | ) |
Leaves the given group
mixed | $obj |
Reimplemented from AclObject.
Definition at line 256 of file PmAclObject.php.