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
19 * This is page is for Grant Dashboard
21 class CRM_Grant_Page_DashBoard
extends CRM_Core_Page
{
24 * Heart of the viewing process. The runner gets all the meta data for
25 * the contact and calls the appropriate type of page to view.
29 public function preProcess() {
30 $admin = CRM_Core_Permission
::check('administer CiviCRM data');
32 $grantSummary = CRM_Grant_BAO_Grant
::getGrantSummary($admin);
34 $this->assign('grantAdmin', $admin);
35 $this->assign('grantSummary', $grantSummary);
39 * the main function that is called when the page loads,
40 * it decides the which action has to be taken for the page.
44 public function run() {
47 $controller = new CRM_Core_Controller_Simple('CRM_Grant_Form_Search', ts('grants'), NULL);
48 $controller->setEmbedded(TRUE);
50 $controller->set('limit', 10);
51 $controller->set('force', 1);
52 $controller->set('context', 'dashboard');
53 $controller->process();