3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
21 * This class is for building event(participation) block on user dashboard
23 class CRM_Event_Page_UserDashboard
extends CRM_Contact_Page_View_UserDashBoard
{
26 * List participations for the UF user.
29 public function listParticipations() {
30 $controller = new CRM_Core_Controller_Simple(
31 'CRM_Event_Form_Search',
34 FALSE, FALSE, TRUE, FALSE
36 $controller->setEmbedded(TRUE);
38 $controller->set('context', 'user');
39 $controller->set('cid', $this->_contactId
);
40 $controller->set('force', 1);
41 $controller->process();
46 * the main function that is called when the page
47 * loads, it decides the which action has to be taken for the page.
50 public function run() {
52 $this->listParticipations();