*
* @static
*
+ * @param bool $admin
+ *
* @return array Array of event summary values
*/
static function getGrantSummary($admin = FALSE) {
*
* @static
*
+ * @param bool $admin
+ *
* @return array Array of grant summary statistics
*/
static function getGrantStatistics($admin = FALSE) {
* function to create the event
*
* @param array $params reference array contains the values submitted by the form
- * @param array $ids reference array contains the id
+ * @param array $ids reference array contains the id
*
+ * @return object
* @access public
* @static
*
if (!$id) {
$id = CRM_Utils_Array::value('contact_id', $params);
}
- if (!empty($params['note']) || CRM_Utils_Array::value('id', CRM_Utils_Array::value('note',$ids))) {
+ if (!empty($params['note']) || CRM_Utils_Array::value('id', CRM_Utils_Array::value('note', $ids))) {
$noteParams = array(
'entity_table' => 'civicrm_grant',
'note' => $params['note'] = $params['note'] ? $params['note'] : "null",
'modified_date' => date('Ymd'),
);
- CRM_Core_BAO_Note::add($noteParams, $ids['note']);
+ CRM_Core_BAO_Note::add($noteParams, (array) CRM_Utils_Array::value('note', $ids));
}
// Log the information on successful add/edit of Grant
$logParams = array(
/**
* Function to delete the Contact
*
- * @param int $cid contact id
+ * @param $id
+ *
+ * @return bool
+ * @internal param int $cid contact id
*
* @access public
* @static
- *
*/
static function deleteContact($id) {
$grant = new CRM_Grant_DAO_Grant();
/**
* Function to delete the grant
*
- * @param int $id grant id
+ * @param int $id grant id
*
+ * @return bool|mixed
* @access public
* @static
*
/**
* Function to get grant record count for a Contact
*
- * @param int $contactId Contact ID
+ * @param $contactID
+ *
+ * @internal param int $contactId Contact ID
*
* @return int count of grant records
* @access public