X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FNote.php;h=85922e056d340ed6a826efffadac7539d5707174;hb=81621fee4d9c2e8c6f5272a1c6b38a86186fe185;hp=834cbc21e551e7d5444fe560b4eaff8f0e357e00;hpb=971d41b1c4889952bbd7bae9360a72d410e13640;p=civicrm-core.git diff --git a/api/v3/Note.php b/api/v3/Note.php index 834cbc21e5..85922e056d 100644 --- a/api/v3/Note.php +++ b/api/v3/Note.php @@ -1,9 +1,9 @@ del($params['id']) ? civicrm_api3_create_success() : civicrm_api3_create_error('Error while deleting Note'); } /** - * Retrieve a specific note, given a set of input params + * Retrieve a specific note or notes, given a set of input params. * * @param array $params * Input parameters. @@ -93,36 +86,33 @@ function civicrm_api3_note_delete($params) { * @return array * array of properties, * if error an array with an error id and error message - * - * {@getfields note_get} */ function civicrm_api3_note_get($params) { - return _civicrm_api3_basic_get('CRM_Core_BAO_Note', $params); } /** - * Adjust Metadata for Get action + * Adjust Metadata for Get action. + * + * The metadata is used for setting defaults, documentation & validation. * - * The metadata is used for setting defaults, documentation & validation * @param array $params - * Array or parameters determined by getfields. + * Array of parameters determined by getfields. */ function _civicrm_api3_note_get_spec(&$params) { $params['entity_table']['api.default'] = "civicrm_contact"; } /** - * Get all descendents of given note + * Get all descendants of given note. * * @param array $params - * Associative array; only required 'id' parameter is used. + * array; only required 'id' parameter is used. * * @return array * Nested associative array beginning with direct children of given note. */ function &civicrm_api3_note_tree_get($params) { - civicrm_api3_verify_mandatory($params, NULL, array('id')); if (!is_numeric($params['id'])) {