forked from CiviWare/org.agbu.annualgrantbudgets
added page and function
This commit is contained in:
58
CRM/Grant/Page/AnnualBudgets.php
Normal file
58
CRM/Grant/Page/AnnualBudgets.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
class CRM_Grant_Page_AnnualBudgets extends CRM_Core_Page_Basic {
|
||||
|
||||
/**
|
||||
* Get BAO Name.
|
||||
*
|
||||
* @return string
|
||||
* Classname of BAO.
|
||||
*/
|
||||
public function getBAOName() {
|
||||
return 'CRM_Grant_BAO_GrantBudget';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get action Links.
|
||||
*
|
||||
* @return array
|
||||
* (reference) of action links
|
||||
*/
|
||||
public function &links() {
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Browse all Grant Budget.
|
||||
*/
|
||||
public function browse() {
|
||||
$fiscalYear = NULL;
|
||||
if (empty($fiscalYear)) {
|
||||
$fiscalYear = date('Y');
|
||||
}
|
||||
$this->assign('fiscalYear', $fiscalYear);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get edit form name.
|
||||
*
|
||||
* @return string
|
||||
* name of this page.
|
||||
*/
|
||||
public function editName() {
|
||||
return ts('Annual Grant Budget');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user context.
|
||||
*
|
||||
* @param null $mode
|
||||
*
|
||||
* @return string
|
||||
* user context.
|
||||
*/
|
||||
public function userContext($mode = NULL) {
|
||||
return 'civicrm/grant/annual/budgets';
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user