INFRA-132 - Drupal.Classes.ClassDeclaration
[civicrm-core.git] / CRM / Group / Page / Group.php
index c0d6ef5ae732047ca4f54549477a59d3f0d5ec06..126256784e3d2e38afc172abe65fb8f124f067d4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -38,84 +38,79 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
   /**
    * @return string
    */
-  function getBAOName() {
+  public function getBAOName() {
     return 'CRM_Contact_BAO_Group';
   }
 
   /**
-   * Function to define action links
+   * Define action links
    *
-   * @return array self::$_links array of action links
-   * @access public
+   *   self::$_links array of action links
    */
-  function &links() {}
+  public function &links() {
+  }
 
   /**
-   * return class name of edit form
+   * Return class name of edit form
    *
    * @return string
-   * @access public
    */
-  function editForm() {
+  public function editForm() {
     return 'CRM_Group_Form_Edit';
   }
 
   /**
-   * return name of edit form
+   * Return name of edit form
    *
    * @return string
-   * @access public
    */
-  function editName() {
+  public function editName() {
     return ts('Edit Group');
   }
 
   /**
-   * return name of delete form
+   * Return name of delete form
    *
    * @return string
-   * @access public
    */
-  function deleteName() {
+  public function deleteName() {
     return 'Delete Group';
   }
 
   /**
-   * return user context uri to return to
+   * Return user context uri to return to
    *
    * @param null $mode
    *
    * @return string
-   * @access public
    */
-  function userContext($mode = NULL) {
+  public function userContext($mode = NULL) {
     return 'civicrm/group';
   }
 
   /**
-   * return user context uri params
+   * Return user context uri params
    *
    * @param null $mode
    *
    * @return string
-   * @access public
    */
-  function userContextParams($mode = NULL) {
+  public function userContextParams($mode = NULL) {
     return 'reset=1&action=browse';
   }
 
   /**
-   * make sure that the user has permission to access this group
+   * Make sure that the user has permission to access this group
    *
-   * @param int $id the id of the object
+   * @param int $id
+   *   The id of the object.
    * @param int $title
+   *   Name or title of the object.
    *
-   * @internal param int $name the name or title of the object
-   *
-   * @return string   the permission that the user has (or null)
-   * @access public
+   * @return string
+   *   the permission that the user has (or null)
    */
-  function checkPermission($id, $title) {
+  public function checkPermission($id, $title) {
     return CRM_Contact_BAO_Group::checkPermission($id, $title);
   }
 
@@ -126,9 +121,8 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
    * @param int $action
    *
    * @return void
-   * @access public
    */
-  function browse($action = NULL) {
+  public function browse($action = NULL) {
     $groupPermission = CRM_Core_Permission::check('edit groups') ? CRM_Core_Permission::EDIT : CRM_Core_Permission::VIEW;
     $this->assign('groupPermission', $groupPermission);
 
@@ -156,9 +150,8 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
     $this->search();
   }
 
-  function search() {
-    if ($this->_action &
-      (CRM_Core_Action::ADD |
+  public function search() {
+    if ($this->_action & (CRM_Core_Action::ADD |
         CRM_Core_Action::UPDATE |
         CRM_Core_Action::DELETE
       )
@@ -172,5 +165,5 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
     $form->process();
     $form->run();
   }
-}
 
+}