Static Public Attributes |
static | $strategy = 'nestedSet.pathMaterialization' |
Detailed Description
Definition at line 11 of file Strategy.php.
Member Function Documentation
static createShortcutClasses |
( |
| ) |
|
|
staticprotected |
Just generates "AGroup" and "RGroup" aka "AcessGroup" and "RequestGroup" dynamically
Definition at line 77 of file Strategy.php.
{
eval('class CGroup extends '.static::getClass('Aco').'{}');
eval('class RGroup extends '.static::getClass('Aro').'{}');
}
Returns the given property of the strategy-config
- Parameters:
-
string | $propName | they key of the property |
- Returns:
- mixed the value
Definition at line 69 of file Strategy.php.
{
return @static::$config[$propName];
}
static getClass |
( |
|
$className | ) |
|
|
static |
Gets the class-Name according to the chosen strategy
- Parameters:
-
- Returns:
- string the resulting class-Name for the strategy
Definition at line 50 of file Strategy.php.
{
$globalClasses = array('AclObject', 'Action', 'RequestingActiveRecord',
'RestrictedActiveRecord', 'CGroup', 'RGroup');
if(in_array($className, $globalClasses))
return $className;
if(substr($className, 0, strlen(static::$config['prefix'])) == static::$config['prefix'])
return $className;
return static::$config['prefix'].$className;
}
Definition at line 29 of file Strategy.php.
{
if(!static::$initialized){
static::$initialized = true;
Yii::import($strategyPath.'.*');
Yii::import($strategyPath.'.models.*');
$config = require_once(Yii::getPathOfAlias($strategyPath.
'.config').
'.php');
throw new RuntimeException('Unable to load configuration');
}
}
Field Documentation
$location = 'application.modules.acl.' |
|
staticprotected |
$strategy = 'nestedSet.pathMaterialization' |
|
static |
The documentation for this class was generated from the following file: