18 public static $strategy =
'nestedSet.pathMaterialization';
26 protected static $location =
'application.modules.acl.';
30 if(!static::$initialized){
31 static::$initialized =
true;
33 Yii::import($strategyPath.
'.*');
34 Yii::import($strategyPath.
'.models.*');
35 $config = require_once(Yii::getPathOfAlias($strategyPath.
'.config').
'.php');
38 throw new RuntimeException(
'Unable to load configuration');
53 $globalClasses = array(
'AclObject',
'Action',
'RequestingActiveRecord',
54 'RestrictedActiveRecord',
'CGroup',
'RGroup');
55 if(in_array($className, $globalClasses))
58 if(substr($className, 0, strlen(static::$config[
'prefix'])) == static::$config[
'prefix'])
61 return static::$config[
'prefix'].$className;
69 public static function get($propName){
70 return @static::$config[$propName];
78 eval(
'class CGroup extends '.static::getClass(
'Aco').
'{}');
79 eval(
'class RGroup extends '.static::getClass(
'Aro').
'{}');