+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
- * File for the CiviCRM APIv3 domain functions
+ * This api exposes CiviCRM system functionality.
*
- * @package CiviCRM_APIv3
- * @subpackage API_Domain
+ * Includes caching, logging, and checking system functionality.
*
- * @copyright CiviCRM LLC (c) 2004-2014
- * @version $Id: Domain.php 30171 2010-10-14 09:11:27Z mover $
+ * @package CiviCRM_APIv3
*/
/**
*
* @param array $params
* Input parameters.
- * - triggers: bool, whether to drop/create SQL triggers; default: FALSE
- * - session: bool, whether to reset the CiviCRM session data; defaul: FALSE
+ * - triggers: bool, whether to drop/create SQL triggers; default: FALSE
+ * - session: bool, whether to reset the CiviCRM session data; default: FALSE
*
* @return array
*/
* 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_system_flush_spec(&$params) {
- $params['triggers'] = array('title' => 'rebuild triggers (boolean)');
- $params['session'] = array('title' => 'refresh sessions (boolean)');
+ $params['triggers'] = array(
+ 'title' => 'Triggers',
+ 'description' => 'rebuild triggers (boolean)',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ );
+ $params['session'] = array(
+ 'title' => 'Sessions',
+ 'description' => 'refresh sessions (boolean)',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ );
}
/**
}
/**
- * System.Check API.
+ * System Check API.
*
* @param array $params
*