|
eZ Publish
[trunk]
|
Defines a limitation for a policy in the permission system. More...
Inheritance diagram for eZPolicyLimitation:
Collaboration diagram for eZPolicyLimitation:Public Member Functions | |
| allValues () | |
| allValuesAsArrayWithNames () | |
| allValuesAsString () | |
| copy ($policyID) | |
| eZPolicyLimitation ($row) | |
| limitArray () | |
| limitValue () | |
| policy () | |
| removeThis () | |
| setAttribute ($attr, $val) | |
| Sets the attribute $attr to the value $val. | |
| valueList () | |
Static Public Member Functions | |
| static | create ($policyID, $identifier) |
| static | createNew ($policyID, $identifier) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetchByIdentifier ($policyID, $identifier, $asObject=true) |
| static | fetchByPolicyID ($policyID, $asObject=true) |
| static | findByType ($type, $value, $asObject=true, $useLike=true) |
| static | removeByID ($id) |
| static | removeSelected ($ID) |
Public Attributes | |
| $LimitValue | |
Defines a limitation for a policy in the permission system.
Definition at line 17 of file ezpolicylimitation.php.
Definition at line 312 of file ezpolicylimitation.php.
Definition at line 200 of file ezpolicylimitation.php.
Definition at line 184 of file ezpolicylimitation.php.
| eZPolicyLimitation::copy | ( | $ | policyID | ) |
Definition at line 148 of file ezpolicylimitation.php.
| static eZPolicyLimitation::create | ( | $ | policyID, |
| $ | identifier | ||
| ) | [static] |
Create a new policy limitation for the policy $policyID with the identifier $identifier.
Definition at line 107 of file ezpolicylimitation.php.
| static eZPolicyLimitation::createNew | ( | $ | policyID, |
| $ | identifier | ||
| ) | [static] |
Definition at line 92 of file ezpolicylimitation.php.
Referenced by copy(), and processDropdownLimitations().
| static eZPolicyLimitation::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 28 of file ezpolicylimitation.php.
Referenced by fetchByIdentifier(), fetchByPolicyID(), eZPolicy\limitationList(), and removeSelected().
Constructor
Definition at line 22 of file ezpolicylimitation.php.
Referenced by create(), createNew(), and findByType().
| static eZPolicyLimitation::fetchByIdentifier | ( | $ | policyID, |
| $ | identifier, | ||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 125 of file ezpolicylimitation.php.
| static eZPolicyLimitation::fetchByPolicyID | ( | $ | policyID, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 134 of file ezpolicylimitation.php.
Referenced by eZUserFunctionCollection\fetchUserRole(), and eZPolicyLimitationValue\removeByValue().
| static eZPolicyLimitation::findByType | ( | $ | type, |
| $ | value, | ||
| $ | asObject = true, |
||
| $ | useLike = true |
||
| ) | [static] |
Definition at line 343 of file ezpolicylimitation.php.
Referenced by eZSection\canBeRemoved(), eZRole\cleanupByNode(), eZSectionFunctionCollection\fetchRoles(), and eZContentObjectTreeNode\move().
Get limitation array
Definition at line 298 of file ezpolicylimitation.php.
Definition at line 59 of file ezpolicylimitation.php.
Get policy object of this policy limitation
Definition at line 67 of file ezpolicylimitation.php.
| static eZPolicyLimitation::removeByID | ( | $ | id | ) | [static] |
Definition at line 160 of file ezpolicylimitation.php.
Referenced by removeThis().
| static eZPolicyLimitation::removeSelected | ( | $ | ID | ) | [static] |
Definition at line 119 of file ezpolicylimitation.php.
Definition at line 179 of file ezpolicylimitation.php.
| eZPolicyLimitation::setAttribute | ( | $ | attr, |
| $ | val | ||
| ) |
Sets the attribute $attr to the value $val.
The attribute must be present in the objects definition fields or set functions.
| string | $attr | |
| mixed | $val |
Reimplemented from eZPersistentObject.
Definition at line 72 of file ezpolicylimitation.php.
Definition at line 323 of file ezpolicylimitation.php.
| eZPolicyLimitation::$LimitValue |
Definition at line 384 of file ezpolicylimitation.php.