Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-09-01-22-48-29
[civicrm-core.git] / CRM / Core / Report / Excel.php
index e81ea88968f135f4946617041358a49fa873d5c0..13718cbe0c2514b04592d076cbdd3b87f7a3b3d1 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 */
+
+/**
+ * Class CRM_Core_Report_Excel
+ */
 class CRM_Core_Report_Excel {
 
   /**
@@ -34,9 +38,12 @@ class CRM_Core_Report_Excel {
    * Outputs a result set with a given header
    * in the string buffer result
    *
-   * @param   string   $header (reference ) column headers
-   * @param   string   $rows   (reference ) result set rows
-   * @param   boolean  $print should the output be printed
+   * @param   string $header (reference ) column headers
+   * @param   string $rows (reference ) result set rows
+   * @param null $titleHeader
+   * @param   boolean $print should the output be printed
+   *
+   * @param bool $outputHeader
    *
    * @return  mixed    empty if output is printed, else output
    *
@@ -144,6 +151,13 @@ class CRM_Core_Report_Excel {
     }
   }
 
+  /**
+   * @param $fileName
+   * @param $header
+   * @param $rows
+   * @param null $titleHeader
+   * @param bool $outputHeader
+   */
   function writeHTMLFile($fileName, &$header, &$rows, $titleHeader = NULL, $outputHeader = TRUE) {
     if ($outputHeader) {
       CRM_Utils_System::download(CRM_Utils_String::munge($fileName),