projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-16019 - Expose date/time format preferences to clientside
[civicrm-core.git]
/
api
/
v3
/
Pledge.php
diff --git
a/api/v3/Pledge.php
b/api/v3/Pledge.php
index bee68ca562459d1448a1d824685da36e8e32e0fd..eb5949599c312304c2432dd14ad7a08a3bfa3e7f 100644
(file)
--- a/
api/v3/Pledge.php
+++ b/
api/v3/Pledge.php
@@
-26,13
+26,9
@@
*/
/**
*/
/**
- *
File for the CiviCRM APIv3 Pledge functions
+ *
This api exposes CiviCRM Pledge.
*
* @package CiviCRM_APIv3
*
* @package CiviCRM_APIv3
- * @subpackage API_Pledge
- *
- * @copyright CiviCRM LLC (c) 2004-2014
- * @version $Id: Pledge.php
*/
/**
*/
/**
@@
-64,7
+60,7
@@
function civicrm_api3_pledge_delete($params) {
if (CRM_Pledge_BAO_Pledge::deletePledge($params['id'])) {
return civicrm_api3_create_success(array(
'id' => $params['id'],
if (CRM_Pledge_BAO_Pledge::deletePledge($params['id'])) {
return civicrm_api3_create_success(array(
'id' => $params['id'],
- ), $params, '
p
ledge', 'delete');
+ ), $params, '
P
ledge', 'delete');
}
else {
return civicrm_api3_create_error('Could not delete pledge');
}
else {
return civicrm_api3_create_error('Could not delete pledge');
@@
-123,21
+119,18
@@
function _civicrm_api3_pledge_create_spec(&$params) {
*
* @return array
* array of pledges, if error an array with an error id and error message
*
* @return array
* array of pledges, if error an array with an error id and error message
- * {@getfields pledge_get}
- * @example PledgeGet.php
*/
function civicrm_api3_pledge_get($params) {
$mode = CRM_Contact_BAO_Query::MODE_PLEDGE;
*/
function civicrm_api3_pledge_get($params) {
$mode = CRM_Contact_BAO_Query::MODE_PLEDGE;
- $entity = 'pledge';
- list($dao, $query) = _civicrm_api3_get_query_object($params, $mode,
$entity
);
+ list($dao, $query) = _civicrm_api3_get_query_object($params, $mode,
'Pledge'
);
$pledge = array();
while ($dao->fetch()) {
$pledge[$dao->pledge_id] = $query->store($dao);
}
$pledge = array();
while ($dao->fetch()) {
$pledge[$dao->pledge_id] = $query->store($dao);
}
- return civicrm_api3_create_success($pledge, $params, '
p
ledge', 'get', $dao);
+ return civicrm_api3_create_success($pledge, $params, '
P
ledge', 'get', $dao);
}
/**
}
/**