Merge pull request #4621 from atif-shaikh/CRM-15589
[civicrm-core.git] / CRM / Utils / ICalendar.php
index f3cd3bbc4e98e1476d5167409b1b09a46a8691f6..b65cf36aa2ec4fb2044a7c505375f8d7ce6142bb 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -66,8 +66,9 @@ class CRM_Utils_ICalendar {
    *
    * @param $date Date to escape
    *
-   * @return  Escaped date
+   * @param bool $gdata
    *
+   * @return  Escaped date
    */
   static function formatDate($date, $gdata = FALSE) {
 
@@ -84,7 +85,6 @@ class CRM_Utils_ICalendar {
   }
 
   /**
-   *
    * Send the ICalendar to the browser with the specified content type
    * - 'text/calendar' : used for downloaded ics file
    * - 'text/plain'    : used for iCal formatted feed
@@ -92,19 +92,13 @@ class CRM_Utils_ICalendar {
    *
    * @access public
    *
+   * @param string $calendar The calendar data to be published.
    * @param string $content_type
-   *
-   * @param string $filename The file name (for downloads)
-   *
+   * @param string $charset The character set to use, defaults to 'us-ascii'.
+   * @param string $fileName The file name (for downloads)
    * @param string $disposition How the file should be sent ('attachment' for downloads)
    *
-   * @param string $charset The character set to use, defaults to
-   * 'us-ascii'.
-   *
-   * @param string $calendar The calendar data to be published.
-   *
    * @return void
-   *
    */
   static function send($calendar, $content_type = 'text/calendar', $charset = 'us-ascii', $fileName = NULL, $disposition = NULL) {
     $config = CRM_Core_Config::singleton();