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 * Main page for Case Dashboard dashlet
24 class CRM_Dashlet_Page_CaseDashboard
extends CRM_Core_Page
{
27 * Case dashboard as dashlet.
31 public function run() {
32 //check for civicase access.
33 if (!CRM_Case_BAO_Case
::accessCiviCase()) {
34 CRM_Core_Error
::statusBounce(ts('You are not authorized to access this page.'));
37 $summary = CRM_Case_BAO_Case
::getCasesSummary(TRUE);
39 if (!empty($summary)) {
40 $this->assign('casesSummary', $summary);