ACL Extension  0.3
 All Data Structures Namespaces Files Functions Variables
PmPermission Class Reference
Inheritance diagram for PmPermission:
Permission

Static Public Member Functions

static deleteByObject (AclObject $obj, array $paths=NULL)
static getPathFieldForType ($type)
- Static Public Member Functions inherited from Permission
static model ($className=__CLASS__)

Additional Inherited Members

- Public Member Functions inherited from Permission
 tableName ()
 rules ()
 relations ()
 attributeLabels ()
 search ()
 __clone ()

Detailed Description

Definition at line 10 of file PmPermission.php.


Member Function Documentation

static deleteByObject ( AclObject  $obj,
array  $paths = NULL 
)
static

Removes all permissions associated to the given object

Parameters:
AclObject$obj
array[string]$path If given, the paths of the object ware not retrieved but taken from this parameter

Definition at line 18 of file PmPermission.php.

{
$type = Util::getDataBaseType($obj);
if($paths === NULL)
$paths = $obj->getPaths();
$condition = PmPathManager::buildMultiplePathCondition($type.'_path', $paths);
return PmPermission::model()->deleteAll($condition);
}
static getPathFieldForType (   $type)
static

Definition at line 29 of file PmPermission.php.

{
return $type.'_path';
}

The documentation for this class was generated from the following file: