Преглед на файлове

maintenance of PHPDoc and error check

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19444 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp преди 16 години
родител
ревизия
7eaa11b1d3
променени са 1 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 5 4
      library/Zend/Mail.php

+ 5 - 4
library/Zend/Mail.php

@@ -792,9 +792,9 @@ class Zend_Mail extends Zend_Mime_Message
     /**
      * Sets Date-header
      *
-     * @param  string    $date
+     * @param  timestamp|string|Zend_Date $date
      * @return Zend_Mail Provides fluent interface
-     * @throws Zend_Mail_Exception if called subsequent times
+     * @throws Zend_Mail_Exception if called subsequent times or wrong date format.
      */
     public function setDate($date = null)
     {
@@ -866,7 +866,7 @@ class Zend_Mail extends Zend_Mime_Message
      * true  :Auto
      * false :No set
      * null  :No set
-     * string:Sets string
+     * string:Sets given string
      * @return  Zend_Mail Provides fluent interface
      * @throws  Zend_Mail_Exception
      */
@@ -963,7 +963,8 @@ class Zend_Mail extends Zend_Mime_Message
     public function addHeader($name, $value, $append = false)
     {
         $prohibit = array('to', 'cc', 'bcc', 'from', 'subject',
-                          'return-path', 'date', 'message-id',
+                          'reply-to', 'return-path',
+                          'date', 'message-id',
                          );
         if (in_array(strtolower($name), $prohibit)) {
             /**