Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 60094db9d20e07a6748c9c9f48a03aa637f4a62e 1 parent ba319d9
rawtaz authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 framework/web/auth/CAccessControlFilter.php
10 framework/web/auth/CAccessControlFilter.php
@@ -24,28 +24,38 @@
24 24 * <pre>
25 25 * array(
26 26 * 'allow', // or 'deny'
  27 + *
27 28 * // optional, list of action IDs (case insensitive) that this rule applies to
28 29 * // if not specified, rule applies to all actions
29 30 * 'actions'=>array('edit', 'delete'),
  31 + *
30 32 * // optional, list of controller IDs (case insensitive) that this rule applies to
31 33 * 'controllers'=>array('post', 'admin/user'),
  34 + *
32 35 * // optional, list of usernames (case insensitive) that this rule applies to
33 36 * // Use * to represent all users, ? guest users, and @ authenticated users
34 37 * 'users'=>array('thomas', 'kevin'),
  38 + *
35 39 * // optional, list of roles (case sensitive!) that this rule applies to.
36 40 * 'roles'=>array('admin', 'editor'),
  41 + *
37 42 * // since version 1.1.11 you can pass parameters for RBAC bizRules
38 43 * 'roles'=>array('updateTopic'=>array('topic'=>$topic))
  44 + *
39 45 * // optional, list of IP address/patterns that this rule applies to
40 46 * // e.g. 127.0.0.1, 127.0.0.*
41 47 * 'ips'=>array('127.0.0.1'),
  48 + *
42 49 * // optional, list of request types (case insensitive) that this rule applies to
43 50 * 'verbs'=>array('GET', 'POST'),
  51 + *
44 52 * // optional, a PHP expression whose value indicates whether this rule applies
45 53 * 'expression'=>'!$user->isGuest && $user->level==2',
  54 + *
46 55 * // optional, the customized error message to be displayed
47 56 * // This option is available since version 1.1.1.
48 57 * 'message'=>'Access Denied.',
  58 + *
49 59 * // optional, the denied method callback name, that will be called once the
50 60 * // access is denied, instead of showing the customized error message. It can also be
51 61 * // a valid PHP callback, including class method name (array(ClassName/Object, MethodName)),

0 comments on commit 60094db

Please sign in to comment.
Something went wrong with that request. Please try again.