eZPolicyLimitation Class Reference
[Role based permission system]

Defines a limitation for a policy in the permission system. More...

Inheritance diagram for eZPolicyLimitation:
eZPersistentObject

List of all members.

Public Member Functions

allValues ()
allValuesAsArrayWithNames ()
allValuesAsString ()
 copy ($policyID)
 createNew ($policyID, $identifier)
 definition ()
 eZPolicyLimitation ($row)
 fetchByIdentifier ($policyID, $identifier, $asObject=true)
 fetchByPolicyID ($policyID, $asObject=true)
 findByType ($type, $value, $asObject=true, $useLike=true)
 limitArray ()
limitValue ()
policy ()
 remove ($id=false)
 removeSelected ($ID)
 setAttribute ($attr, $val)
valueList ()

Static Public Member Functions

create ($policyID, $identifier)

Public Attributes

 $LimitValue

Detailed Description

Defines a limitation for a policy in the permission system.

Definition at line 44 of file ezpolicylimitation.php.


Member Function Documentation

& eZPolicyLimitation::allValues (  ) 

Definition at line 351 of file ezpolicylimitation.php.

& eZPolicyLimitation::allValuesAsArrayWithNames (  ) 

Definition at line 233 of file ezpolicylimitation.php.

& eZPolicyLimitation::allValuesAsString (  ) 

Definition at line 217 of file ezpolicylimitation.php.

eZPolicyLimitation::copy ( policyID  ) 
Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 180 of file ezpolicylimitation.php.

& eZPolicyLimitation::create ( policyID,
identifier 
) [static]

Create a new policy limitation for the policy $policyID with the identifier $identifier.

Note:
The limitation is not stored.

Definition at line 138 of file ezpolicylimitation.php.

eZPolicyLimitation::createNew ( policyID,
identifier 
)
Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 123 of file ezpolicylimitation.php.

Referenced by copy().

eZPolicyLimitation::definition (  ) 
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:

  • fields - an associative array of fields which defines which database field (the key) is to fetched and how they map to object member variables (the value).
  • keys - an array of fields which is used for uniquely identifying the object in the table.
  • function_attributes - an associative array of attributes which maps to member functions, used for fetching data with functions.
  • set_functions - an associative array of attributes which maps to member functions, used for setting data with functions.
  • increment_key - the field which is incremented on table inserts.
  • class_name - the classname which is used for instantiating new objecs when fetching from the database.
  • sort - an associative array which defines the default sorting of lists, the key is the table field while the value is the sorting method which is either asc or desc.
  • name - the name of the database table

Example:

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 55 of file ezpolicylimitation.php.

Referenced by fetchByIdentifier(), fetchByPolicyID(), eZPolicy::limitationList(), and removeSelected().

eZPolicyLimitation::eZPolicyLimitation ( row  ) 

Constructor

Definition at line 49 of file ezpolicylimitation.php.

Referenced by create(), createNew(), and findByType().

eZPolicyLimitation::fetchByIdentifier ( policyID,
identifier,
asObject = true 
)

Definition at line 157 of file ezpolicylimitation.php.

eZPolicyLimitation::fetchByPolicyID ( policyID,
asObject = true 
)

Definition at line 166 of file ezpolicylimitation.php.

Referenced by eZPolicyLimitationValue::removeByValue().

eZPolicyLimitation::findByType ( type,
value,
asObject = true,
useLike = true 
)
eZPolicyLimitation::limitArray (  ) 

Get limitation array

Returns:
access limitation array

Definition at line 337 of file ezpolicylimitation.php.

& eZPolicyLimitation::limitValue (  ) 

Definition at line 85 of file ezpolicylimitation.php.

& eZPolicyLimitation::policy (  ) 

Get policy object of this policy limitation

Definition at line 93 of file ezpolicylimitation.php.

eZPolicyLimitation::remove ( id = false  ) 
Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 193 of file ezpolicylimitation.php.

eZPolicyLimitation::removeSelected ( ID  ) 
Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 151 of file ezpolicylimitation.php.

eZPolicyLimitation::setAttribute ( attr,
val 
)

Reimplemented from eZPersistentObject.

Definition at line 103 of file ezpolicylimitation.php.

& eZPolicyLimitation::valueList (  ) 

Definition at line 362 of file ezpolicylimitation.php.


Member Data Documentation

eZPolicyLimitation::$LimitValue

Definition at line 423 of file ezpolicylimitation.php.


The documentation for this class was generated from the following file:
Generated on Mon Jul 12 07:10:30 2010 for eZ publish by  doxygen 1.6.3