Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-02-25-11-27-40
[civicrm-core.git] / CRM / Event / Page / UserDashboard.php
index 395c9697654434a3462b9dbbe65822d798be667d..57134c0a143abe235fab319701a560b2a2af1eae 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
 class CRM_Event_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard {
 
   /**
-   * Function to list participations for the UF user
+   * List participations for the UF user.
    *
-   * return null
-   * @access public
    */
-  function listParticipations() {
+  public function listParticipations() {
     $controller = new CRM_Core_Controller_Simple(
       'CRM_Event_Form_Search',
       ts('Events'),
@@ -61,15 +59,13 @@ class CRM_Event_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard {
   }
 
   /**
-   * This function is the main function that is called when the page
+   * the main function that is called when the page
    * loads, it decides the which action has to be taken for the page.
    *
-   * return null
-   * @access public
    */
-  function run() {
+  public function run() {
     parent::preProcess();
     $this->listParticipations();
   }
-}
 
+}