Class CAccessRule
CAccessRule represents an access rule that is managed by CAccessControlFilter.
- CComponent
- 
			 CAccessRule CAccessRule
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/auth/CAccessControlFilter.php
| 
			 public 
			integer
			
			 | 
		#
		 isUserAllowed( Checks whether the Web user is allowed to perform the specified action. | 
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			boolean
			
			 | 
| 
			public  
			boolean
		 | $allow |  | 
			#
			 whether this is an 'allow' rule or 'deny' rule. | 
| 
			public  
			array
		 | $actions |  | 
			#
			 list of action IDs that this rule applies to. The comparison is case-insensitive. If no actions are specified, rule applies to all actions. | 
| 
			public  
			array
		 | $controllers |  | 
			#
			 list of controller IDs that this rule applies to. The comparison is case-insensitive. | 
| 
			public  
			array
		 | $users |  | 
			#
			 list of user names that this rule applies to. The comparison is case-insensitive. If no user names are specified, rule applies to all users. | 
| 
			public  
			array
		 | $roles |  | 
			#
			 list of roles this rule applies to. For each role, the current user's  | 
| 
			public  
			array
		 | $ips |  | 
			#
			 IP patterns. | 
| 
			public  
			array
		 | $verbs |  | 
			#
			 list of request types (e.g. GET, POST) that this rule applies to. | 
| 
			public  
			string
		 | $expression |  | 
			#
			 a PHP expression whose value indicates whether this rule should be applied.
In this expression, you can use  
function foo($user, $rule) { ... }
where $user is the current application user object and $rule is this access rule. The PHP expression will be evaluated using  A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. | 
| 
			public  
			string
		 | $message |  | 
			#
			 the error message to be displayed when authorization is denied by this rule. If not set, a default error message will be displayed. | 
| 
			public  
			mixed
		 | $deniedCallback |  | 
			#
			 the denied method callback that will be called once the access is denied. It replaces the behavior that shows an error message. It can be a valid PHP callback including class method name (array(ClassName/Object, MethodName)), or anonymous function (PHP 5.3.0+). For more information, on different options, check |