cvs: php4 /pear Mail.php
| From: | Alexander Merz | Date: | Thu, 09 Aug 2001 01:11:56 +0000 |
| Subject: | cvs: php4 /pear Mail.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-441@lists.php.net to get a copy of this message | ||
alexmerz Wed Aug 8 21:11:56 2001 EDT
Modified files:
/php4/pear Mail.php
Log:
fix PHPDoc
Index: php4/pear/Mail.php
diff -u php4/pear/Mail.php:1.10 php4/pear/Mail.php:1.11
--- php4/pear/Mail.php:1.10 Thu Feb 22 11:01:14 2001
+++ php4/pear/Mail.php Wed Aug 8 21:11:56 2001
@@ -15,6 +15,8 @@
// +----------------------------------------------------------------------+
// | Authors: Chuck Hagenbuch <chuck@horde.org> |
// +----------------------------------------------------------------------+
+//
+// $Id: Mail.php,v 1.11 2001/08/09 01:11:56 alexmerz Exp $
require_once 'PEAR.php';
@@ -22,6 +24,10 @@
* PEAR's Mail:: interface. Defines the interface for implementing
* mailers under the PEAR hierarchy, and provides supporting functions
* useful in multiple mailer backends.
+ *
+ * @access public
+ * @version $Revision: 1.11 $
+ * @package Mail
*/
class Mail extends PEAR {
@@ -29,8 +35,9 @@
* Provides an interface for generating Mail:: objects of various
* types
*
- * @param string The kind of Mail:: object to instantiate.
- * @param array The parameters to pass to the Mail:: object.
+ * @param string $driver The kind of Mail:: object to instantiate.
+ * @param array $params The parameters to pass to the Mail:: object.
+ @ @return object Mail a instance of the driver class or if fails a PEAR Error
* @access public
*/
function factory($driver, $params = array())
@@ -42,32 +49,34 @@
} else {
return new PEAR_Error('Unable to find class for driver ' . $driver);
}
+
}
/**
* Implements Mail::send() function using php's built-in mail()
* command.
- *
- * @param mixed Either a comma-seperated list of recipients
+ *
+ * @param mixed $recipients Either a comma-seperated list of recipients
* (RFC822 compliant), or an array of recipients,
* each RFC822 valid. This may contain recipients not
* specified in the headers, for Bcc:, resending
* messages, etc.
*
- * @param array The array of headers to send with the mail, in an
+ * @param array $headers The array of headers to send with the mail, in an
* associative array, where the array key is the
* header name (ie, 'Subject'), and the array value
* is the header value (ie, 'test'). The header
* produced from those values would be 'Subject:
* test'.
*
- * @param string The full text of the message body, including any
+ * @param string $body The full text of the message body, including any
* Mime parts, etc.
*
* @return mixed Returns true on success, or a PEAR_Error
* containing a descriptive error message on
* failure.
* @access public
+ * @deprecated use Mail_mail::send instead
*/
function send($recipients, $headers, $body)
{
@@ -88,13 +97,14 @@
list(,$text_headers) = Mail::prepareHeaders($headers);
return mail($recipients, $subject, $body, $text_headers);
+
}
/**
* Take an array of mail headers and return a string containing
* text usable in sending a message.
*
- * @param array The array of headers to prepare, in an associative
+ * @param array $headers The array of headers to prepare, in an associative
* array, where the array key is the header name (ie,
* 'Subject'), and the array value is the header
* value (ie, 'test'). The header produced from those
@@ -104,7 +114,7 @@
* otherwise returns an array containing two
* elements: Any From: address found in the headers,
* and the plain text version of the headers.
- * @access protected
+ * @access private
*/
function prepareHeaders($headers)
{
@@ -146,7 +156,7 @@
* each RFC822 valid.
*
* @return array An array of forward paths (bare addresses).
- * @access protected
+ * @access private
*/
function parseRecipients($recipients)
{