Merge pull request #5131 from colemanw/enableDisable
[civicrm-core.git] / CRM / ACL / Page / ACL.php
index b711625c5e85e7b179f0d5cadcda6aa531e54fac..df24276f58ef12d302ee9d74e286f2ebeb599631 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -45,15 +45,14 @@ class CRM_ACL_Page_ACL extends CRM_Core_Page_Basic {
   public $useLivePageJS = TRUE;
 
   /**
-   * The action links that we need to display for the browse screen
+   * The action links that we need to display for the browse screen.
    *
    * @var array
-   * @static
    */
   static $_links = NULL;
 
   /**
-   * Get BAO Name
+   * Get BAO Name.
    *
    * @return string
    *   Classname of BAO.
@@ -63,7 +62,7 @@ class CRM_ACL_Page_ACL extends CRM_Core_Page_Basic {
   }
 
   /**
-   * Get action Links
+   * Get action Links.
    *
    * @return array
    *   (reference) of action links
@@ -127,7 +126,7 @@ class CRM_ACL_Page_ACL extends CRM_Core_Page_Basic {
         'url' => CRM_Utils_System::url('civicrm/admin/access',
           'reset=1'
         ),
-      )
+      ),
     );
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     // what action to take ?
@@ -154,10 +153,9 @@ class CRM_ACL_Page_ACL extends CRM_Core_Page_Basic {
   }
 
   /**
-   * Browse all acls
+   * Browse all acls.
    *
    * @return void
-   * @static
    */
   public function browse() {
     // get all acl's sorted by weight
@@ -175,22 +173,22 @@ ORDER BY entity_id
     $roles = CRM_Core_OptionGroup::values('acl_role');
 
     $group = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Groups'),
-      ) + CRM_Core_PseudoConstant::group();
+      '-1' => ts('- select -'),
+      '0' => ts('All Groups'),
+    ) + CRM_Core_PseudoConstant::group();
     $customGroup = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Custom Groups'),
-      ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_CustomField', 'custom_group_id');
+      '-1' => ts('- select -'),
+      '0' => ts('All Custom Groups'),
+    ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_CustomField', 'custom_group_id');
     $ufGroup = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Profiles'),
-      ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');
+      '-1' => ts('- select -'),
+      '0' => ts('All Profiles'),
+    ) + CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');
 
     $event = array(
-        '-1' => ts('- select -'),
-        '0' => ts('All Events'),
-      ) + CRM_Event_PseudoConstant::event();
+      '-1' => ts('- select -'),
+      '0' => ts('All Events'),
+    ) + CRM_Event_PseudoConstant::event();
 
     while ($dao->fetch()) {
       $acl[$dao->id] = array();
@@ -256,7 +254,7 @@ ORDER BY entity_id
   }
 
   /**
-   * Get name of edit form
+   * Get name of edit form.
    *
    * @return string
    *   Classname of edit form.
@@ -266,7 +264,7 @@ ORDER BY entity_id
   }
 
   /**
-   * Get edit form name
+   * Get edit form name.
    *
    * @return string
    *   name of this page.
@@ -286,4 +284,5 @@ ORDER BY entity_id
   public function userContext($mode = NULL) {
     return 'civicrm/acl';
   }
+
 }