More comment fixes
[civicrm-core.git] / api / v3 / Country.php
index 524c7d97f32b624666c50e999f718d7636b97120..5683691ebf73e50eddaa7129fbe75bab38ebf2c1 100644 (file)
@@ -25,7 +25,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * File for the CiviCRM APIv3 country functions
  * @version $Id: Country.php 2011-02-16 ErikHommel $
  */
 
-require_once 'CRM/Core/DAO/Country.php';
-
 /**
- * Add an Country for a contact
- *
- * Allowed @params array keys are:
+ * Add an Country for a contact.
  *
- * @example CountryCreate.php Standard Create Example
+ * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
  *   API result array
- * {@getfields country_create}
- * @access public
+ * @throws \API_Exception
  */
 function civicrm_api3_country_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_DAO(__FUNCTION__), $params);
 }
 
 /**
- * Adjust Metadata for Create action
+ * Adjust Metadata for Create action.
+ *
+ * The metadata is used for setting defaults, documentation & validation.
  *
- * The metadata is used for setting defaults, documentation & validation
  * @param array $params
  *   Array or parameters determined by getfields.
  */
@@ -67,36 +64,24 @@ function _civicrm_api3_country_create_spec(&$params) {
 }
 
 /**
- * Deletes an existing Country
+ * Deletes an existing Country.
  *
  * @param array $params
  *
- * @example CountryDelete.php Standard Delete Example
- *
- * @return boolean
- *   | error  true if successfull, error otherwise
- * {@getfields country_delete}
- * @access public
+ * @return array
  */
 function civicrm_api3_country_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_DAO(__FUNCTION__), $params);
 }
 
 /**
- * Retrieve one or more countrys
- *
- * @param array input parameters
- *
- *
- * @example CountryGet.php Standard Get Example
+ * Retrieve one or more countryies.
  *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
- * {@getfields country_get}
- * @access public
  */
 function civicrm_api3_country_get($params) {