Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefangiehl@gmail.com>2012-05-27 01:08:06 +0400
committersgiehl <stefangiehl@gmail.com>2012-05-27 01:08:06 +0400
commitf0ffb387356941fa8518b3c546a239cf49c3524a (patch)
treeeb305898ecb30a82aafcf8e4ada344077b1c0c41 /core/Mail.php
parent71fc2e87eb99212ccd0da6235a8410f55c39c7b5 (diff)
moved another interface to its own file; fixed/added lot of doc blocks
git-svn-id: http://dev.piwik.org/svn/trunk@6325 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Mail.php')
-rw-r--r--core/Mail.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/core/Mail.php b/core/Mail.php
index 1abe8f0cb3..8c1fa3c2e8 100644
--- a/core/Mail.php
+++ b/core/Mail.php
@@ -21,14 +21,21 @@ class Piwik_Mail extends Zend_Mail
{
/**
* Default charset utf-8
- * @param string $charset
+ *
+ * @param string $charset charset, defaults to utf-8
*/
public function __construct($charset = 'utf-8')
{
parent::__construct($charset);
$this->initSmtpTransport();
}
-
+
+ /**
+ * Sets the sender to use
+ *
+ * @param string $email
+ * @param null|string $name
+ */
public function setFrom($email, $name = null)
{
$hostname = Piwik_Config::getInstance()->mail['defaultHostnameIfEmpty'];
@@ -46,7 +53,10 @@ class Piwik_Mail extends Zend_Mail
$email = str_replace('{DOMAIN}', $piwikHost, $email);
parent::setFrom($email, $name);
}
-
+
+ /**
+ * @return void
+ */
private function initSmtpTransport()
{
$mailConfig = Piwik_Config::getInstance()->mail;