/**
* Fetch object based on array of properties
*
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param array $defaults (reference ) an assoc array to hold the flattened values
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
+ * @param array $defaults
+ * (reference ) an assoc array to hold the flattened values.
*
* @return CRM_Grant_BAO_ManageGrant object
- * @access public
* @static
*/
public static function retrieve(&$params, &$defaults) {
/**
* Add grant
*
- * @param array $params reference array contains the values submitted by the form
- * @param array $ids reference array contains the id
+ * @param array $params
+ * Reference array contains the values submitted by the form.
+ * @param array $ids
+ * Reference array contains the id.
*
- * @access public
* @static
*
* @return object
$grantTypes = CRM_Core_PseudoConstant::get('CRM_Grant_DAO_Grant', 'grant_type_id');
if (empty($params['skipRecentView'])) {
- if(!isset($grant->contact_id) || !isset($grant->grant_type_id)){
+ if (!isset($grant->contact_id) || !isset($grant->grant_type_id)){
$grant->find(TRUE);
}
$title = CRM_Contact_BAO_Contact::displayName($grant->contact_id) . ' - ' . ts('Grant') . ': ' . $grantTypes[$grant->grant_type_id];
);
}
- // add the recently created Grant
+ // add the recently created Grant
CRM_Utils_Recent::add($title,
$url,
$grant->id,
/**
* 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 $params
+ * Reference array contains the values submitted by the form.
+ * @param array $ids
+ * Reference array contains the id.
*
* @return object
- * @access public
* @static
*
*/
/**
* Delete the Contact
*
- * @param int $id contact id
+ * @param int $id
+ * Contact id.
*
* @return bool
*
- * @access public
* @static
*/
public static function deleteContact($id) {
/**
* Delete the grant
*
- * @param int $id grant id
+ * @param int $id
+ * Grant id.
*
* @return bool|mixed
- * @access public
* @static
*
*/
* Combine all the exportable fields from the lower levels object
*
* @return array array of exportable Fields
- * @access public
* @static
*/
public static function &exportableFields() {
);
$fields = CRM_Grant_DAO_Grant::export();
- $grantNote = array('grant_note' => array('title' => ts('Grant Note'),
+ $grantNote = array(
+ 'grant_note' => array(
+ 'title' => ts('Grant Note'),
'name' => 'grant_note',
'data_type' => CRM_Utils_Type::T_TEXT,
));
* @param int $contactID
*
* @return int count of grant records
- * @access public
* @static
*/
public static function getContactGrantCount($contactID) {
return CRM_Core_DAO::singleValueQuery($query);
}
}
-