/**
  * Sets the property $name to $value.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist.
  * @param string $name
  * @return mixed
  * @ignore
  */
 public function __get($name)
 {
     switch ($name) {
         case 'mail':
             return $this->properties[$name];
             break;
         default:
             return parent::__get($name);
             break;
     }
 }
Exemple #2
0
 /**
  * Returns the property $name.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist.
  * @param string $name
  * @return mixed
  * @ignore
  */
 public function __get($name)
 {
     switch ($name) {
         case 'to':
         case 'cc':
         case 'bcc':
             return (array) $this->properties[$name];
         case 'from':
         case 'subject':
         case 'subjectCharset':
         case 'body':
         case 'messageId':
         case 'returnPath':
             return $this->properties[$name];
         case 'messageID':
             // deprecated version
             return $this->properties['messageId'];
         case 'timestamp':
             return strtotime($this->getHeader("Date"));
         default:
             return parent::__get($name);
     }
 }
Exemple #3
0
 /**
  * Returns the value of property $value.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist.
  * @param string $name
  * @return mixed
  * @ignore
  */
 public function __get($name)
 {
     switch ($name) {
         case 'fileName':
         case 'mimeType':
         case 'contentType':
         case 'dispositionType':
         case 'contentId':
             return $this->properties[$name];
             break;
         default:
             return parent::__get($name);
             break;
     }
 }
 /**
  * Returns the property $name.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist.
  * @param string $name
  * @return mixed
  * @ignore
  */
 public function __get($name)
 {
     switch ($name) {
         case 'boundary':
         case 'noMimeMessage':
             return $this->properties[$name];
             break;
         default:
             return parent::__get($name);
             break;
     }
 }
Exemple #5
0
 /**
  * Sets the property $name to $value.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist.
  * @param string $name
  * @return mixed
  * @ignore
  */
 public function __get($name)
 {
     switch ($name) {
         case 'charset':
         case 'originalCharset':
         case 'subType':
         case 'encoding':
         case 'text':
             return $this->properties[$name];
         default:
             return parent::__get($name);
     }
 }
Exemple #6
0
 /**
  * Returns the property $name.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist
  * @param string $name
  * @return mixed
  * @ignore
  */
 public function __get($name)
 {
     switch ($name) {
         case 'message':
         case 'recipients':
             return $this->properties[$name];
             break;
         default:
             return parent::__get($name);
             break;
     }
 }