Merge pull request #16348 from eileenmcnaughton/ev_online
[civicrm-core.git] / CRM / Dashlet / Page / CaseDashboard.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
bc77d7c0
TO
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 |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 * $Id$
17 *
18 */
19
20/**
21 * Main page for Case Dashboard dashlet
22 *
23 */
24class CRM_Dashlet_Page_CaseDashboard extends CRM_Core_Page {
25
26 /**
fe482240 27 * Case dashboard as dashlet.
6a488035 28 *
355ba699 29 * @return void
6a488035 30 */
00be9182 31 public function run() {
6a488035
TO
32 //check for civicase access.
33 if (!CRM_Case_BAO_Case::accessCiviCase()) {
beb414cc 34 CRM_Core_Error::statusBounce(ts('You are not authorized to access this page.'));
6a488035
TO
35 }
36
5f1c8c57 37 $summary = CRM_Case_BAO_Case::getCasesSummary(TRUE);
6a488035
TO
38
39 if (!empty($summary)) {
40 $this->assign('casesSummary', $summary);
41 }
42
43 return parent::run();
44 }
96025800 45
6a488035 46}