X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FNote.php;h=bc03b1f549d520610482db8ab8bef3b297e484db;hb=5bbcc82374632713a022a8cc7981e5cc0bdfd0dd;hp=64c091c0cff40abf7c4e5d707ad3583922be2689;hpb=1024e1784fb68b8529a77143f5191a60d70837cf;p=civicrm-core.git diff --git a/api/v3/Note.php b/api/v3/Note.php index 64c091c0cf..bc03b1f549 100644 --- a/api/v3/Note.php +++ b/api/v3/Note.php @@ -1,10 +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 + * @param array $params + * Input parameters. * - * @return array array of properties, - * if error an array with an error id and error message - * {@getfields note_get} - * @static void - * @access public + * @return array + * array of properties, + * if error an array with an error id and error message */ 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 - * @param array $params array or parameters determined by getfields + * The metadata is used for setting defaults, documentation & validation. + * + * @param array $params + * 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 + * @param array $params + * array; only required 'id' parameter is used. * - * @return array Nested associative array beginning with direct children of given note. + * @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'])) { @@ -139,4 +127,3 @@ function &civicrm_api3_note_tree_get($params) { $noteTree = CRM_Core_BAO_Note::getNoteTree($params['id'], $params['max_depth'], $params['snippet']); return civicrm_api3_create_success($noteTree, $params); } -