Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix #1839: Add more whitespace to phpdoc for CAccessControlFilter. #1841

Merged
merged 2 commits into from

2 participants

@rawtaz

I agree with @gusdecool in #1839 that there's so much text in this array doc that it would be more readable with some extra whitespace.

@mdomba
Collaborator

There are few lines in that doc block that has TABs instead of spaces... can you fix that too?

@rawtaz

Thanks for seeing that. I didn't notice.

@mdomba mdomba merged commit fe673e6 into from
@mdomba
Collaborator

Merged, thanks...

@mdomba mdomba was assigned
@rawtaz rawtaz deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 4 deletions.
  1. +14 −4 framework/web/auth/CAccessControlFilter.php
View
18 framework/web/auth/CAccessControlFilter.php
@@ -24,34 +24,44 @@
* <pre>
* array(
* 'allow', // or 'deny'
+ *
* // optional, list of action IDs (case insensitive) that this rule applies to
* // if not specified, rule applies to all actions
* 'actions'=>array('edit', 'delete'),
+ *
* // optional, list of controller IDs (case insensitive) that this rule applies to
* 'controllers'=>array('post', 'admin/user'),
+ *
* // optional, list of usernames (case insensitive) that this rule applies to
* // Use * to represent all users, ? guest users, and @ authenticated users
* 'users'=>array('thomas', 'kevin'),
+ *
* // optional, list of roles (case sensitive!) that this rule applies to.
* 'roles'=>array('admin', 'editor'),
+ *
* // since version 1.1.11 you can pass parameters for RBAC bizRules
* 'roles'=>array('updateTopic'=>array('topic'=>$topic))
+ *
* // optional, list of IP address/patterns that this rule applies to
* // e.g. 127.0.0.1, 127.0.0.*
* 'ips'=>array('127.0.0.1'),
+ *
* // optional, list of request types (case insensitive) that this rule applies to
* 'verbs'=>array('GET', 'POST'),
+ *
* // optional, a PHP expression whose value indicates whether this rule applies
* 'expression'=>'!$user->isGuest && $user->level==2',
+ *
* // optional, the customized error message to be displayed
* // This option is available since version 1.1.1.
* 'message'=>'Access Denied.',
+ *
* // optional, the denied method callback name, that will be called once the
- * // access is denied, instead of showing the customized error message. It can also be
+ * // access is denied, instead of showing the customized error message. It can also be
* // a valid PHP callback, including class method name (array(ClassName/Object, MethodName)),
- * // or anonymous function (PHP 5.3.0+). The function/method signature should be as follows:
- * // function foo($user, $rule) { ... }
- * // where $user is the current application user object and $rule is this access rule.
+ * // or anonymous function (PHP 5.3.0+). The function/method signature should be as follows:
+ * // function foo($user, $rule) { ... }
+ * // where $user is the current application user object and $rule is this access rule.
* // This option is available since version 1.1.11.
* 'deniedCallback'=>'redirectToDeniedMethod',
* )
Something went wrong with that request. Please try again.