INFRA-132 - Copyright header - Drupal.WhiteSpace.ScopeIndent.IncorrectExact
[civicrm-core.git] / CRM / Event / Page / UserDashboard.php
index 37d91d93d6addc7a5daf97434691f74b6297b866..e3d164350f7f3d4296accc2acfc461c0109813b0 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
 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() {
-    $controller = new CRM_Core_Controller_Simple('CRM_Event_Form_Search', ts('Events'), NULL);
+  public function listParticipations() {
+    $controller = new CRM_Core_Controller_Simple(
+      'CRM_Event_Form_Search',
+      ts('Events'),
+      NULL,
+      FALSE, FALSE, TRUE, FALSE
+    );
     $controller->setEmbedded(TRUE);
     $controller->reset();
     $controller->set('context', 'user');
@@ -56,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();
   }
-}
 
+}