Merge pull request #3679 from yashodha/CRM-14951
[civicrm-core.git] / api / v3 / ReportTemplate.php
index 2976162973770cadaabf9c7943b22f647e2b23a9..ad618ac654d699c7b80b58a5d3d9ab6ef35acf11 100644 (file)
@@ -96,6 +96,13 @@ function civicrm_api3_report_template_getrows($params) {
   return civicrm_api3_create_success($rows, $params, 'report_template', 'getrows', CRM_Core_DAO::$_nullObject, $metadata);
 }
 
+/**
+ * @param $params
+ *
+ * @return array
+ * @throws API_Exception
+ * @throws CiviCRM_API3_Exception
+ */
 function _civicrm_api3_report_template_getrows($params) {
   if(empty($params['report_id'])) {
     $params['report_id'] = civicrm_api3('report_instance', 'getvalue', array('id' => $params['instance_id'], 'return' => 'report_id'));
@@ -141,6 +148,11 @@ function _civicrm_api3_report_template_getrows($params) {
   return array($rows, $reportInstance, $metadata);
 }
 
+/**
+ * @param $params
+ *
+ * @return array
+ */
 function civicrm_api3_report_template_getstatistics($params) {
   list($rows, $reportInstance, $metadata) = _civicrm_api3_report_template_getrows($params);
   $stats = $reportInstance->statistics($rows);