projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version fixes
[civicrm-core.git]
/
api
/
v3
/
Note.php
diff --git
a/api/v3/Note.php
b/api/v3/Note.php
index 86fe2ee0bc244c1916dac1197e93270c173ca600..85922e056d340ed6a826efffadac7539d5707174 100644
(file)
--- a/
api/v3/Note.php
+++ b/
api/v3/Note.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
6
|
+ | CiviCRM version 4.
7
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
4
|
+ | Copyright CiviCRM LLC (c) 2004-201
5
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-29,8
+29,6
@@
* This api exposes CiviCRM note.
*
* @package CiviCRM_APIv3
* This api exposes CiviCRM note.
*
* @package CiviCRM_APIv3
- * @subpackage API_Note
- *
*/
/**
*/
/**
@@
-41,7
+39,6
@@
*
* @param array $params
* An associative array of name/value property values of civicrm_note.
*
* @param array $params
* An associative array of name/value property values of civicrm_note.
- * {@getfields note_create}
*
* @return array
* API result array
*
* @return array
* API result array
@@
-56,7
+53,7
@@
function civicrm_api3_note_create($params) {
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
- * Array o
r
parameters determined by getfields.
+ * Array o
f
parameters determined by getfields.
*/
function _civicrm_api3_note_create_spec(&$params) {
$params['entity_table']['api.default'] = "civicrm_contact";
*/
function _civicrm_api3_note_create_spec(&$params) {
$params['entity_table']['api.default'] = "civicrm_contact";
@@
-76,7
+73,6
@@
function _civicrm_api3_note_create_spec(&$params) {
* @return array
*/
function civicrm_api3_note_delete($params) {
* @return array
*/
function civicrm_api3_note_delete($params) {
-
$result = new CRM_Core_BAO_Note();
return $result->del($params['id']) ? civicrm_api3_create_success() : civicrm_api3_create_error('Error while deleting Note');
}
$result = new CRM_Core_BAO_Note();
return $result->del($params['id']) ? civicrm_api3_create_success() : civicrm_api3_create_error('Error while deleting Note');
}
@@
-92,7
+88,6
@@
function civicrm_api3_note_delete($params) {
* if error an array with an error id and error message
*/
function civicrm_api3_note_get($params) {
* 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);
}
return _civicrm_api3_basic_get('CRM_Core_BAO_Note', $params);
}
@@
-102,7
+97,7
@@
function civicrm_api3_note_get($params) {
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
- * Array o
r
parameters determined by getfields.
+ * Array o
f
parameters determined by getfields.
*/
function _civicrm_api3_note_get_spec(&$params) {
$params['entity_table']['api.default'] = "civicrm_contact";
*/
function _civicrm_api3_note_get_spec(&$params) {
$params['entity_table']['api.default'] = "civicrm_contact";
@@
-118,7
+113,6
@@
function _civicrm_api3_note_get_spec(&$params) {
* Nested associative array beginning with direct children of given note.
*/
function &civicrm_api3_note_tree_get($params) {
* 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'])) {
civicrm_api3_verify_mandatory($params, NULL, array('id'));
if (!is_numeric($params['id'])) {