*
* @param array $apiRequest
* Api request as an array. Keys are.
- * - entity: string
- * - action: string
- * - version: string
- * - function: callback (mixed)
- * - params: array, varies
- * @return array API success object
+ * - entity: string
+ * - action: string
+ * - version: string
+ * - function: callback (mixed)
+ * - params: array, varies
+ * @return array
+ * API success object
*/
function civicrm_api3_generic_getfields($apiRequest) {
static $results = array();
case 'getfields':
$values = _civicrm_api_get_fields($entity, FALSE, $apiRequest['params']);
return civicrm_api3_create_success($values, $apiRequest['params'], $entity, 'getfields');
+
case 'create':
case 'update':
case 'replace':
* Api request as an array. Keys are.
*
* @throws API_Exception
- * @return integer count of results
+ * @return int
+ * count of results
*/
function civicrm_api3_generic_getcount($apiRequest) {
$apiRequest['params']['options']['is_count'] = TRUE;
* @param array $apiRequest
* Api request as an array. Keys are.
*
- * @return integer count of results
+ * @return int
+ * count of results
*/
function civicrm_api3_generic_getsingle($apiRequest) {
// so the first entity is always result['values'][0]
* @param array $apiRequest
* Api request as an array. Keys are.
*
- * @return integer count of results
+ * @return int
+ * count of results
*/
function civicrm_api3_generic_getvalue($apiRequest) {
$apiRequest['params']['sequential'] = 1;
* Api request as an array.
*
* @throws API_Exception
- * @return array API result (int 0 or 1)
+ * @return array
+ * API result (int 0 or 1)
*/
function civicrm_api3_generic_getrefcount($apiRequest) {
$entityToClassMap = CRM_Core_DAO_AllCoreTables::daoToClass();
* @param array $apiRequest
* Api request as an array. Keys are.
*
- * @return integer count of results
+ * @return int
+ * count of results
*/
function civicrm_api3_generic_replace($apiRequest) {
return _civicrm_api3_generic_replace($apiRequest['entity'], $apiRequest['params']);
* @param array $apiRequest
* Api request as an array.
*
- * @return array of results
+ * @return array
+ * Array of results
*/
function civicrm_api3_generic_getoptions($apiRequest) {
// Resolve aliases
*
* @param array $metadata
* The array of metadata that will form the result of the getfields function.
- * @param $apiRequest
+ * @param array $apiRequest
* @param string $fieldname
* Field currently being processed.
* @param array $fieldSpec