__construct() публичный Метод

Constructs an empty ezcMail object.
public __construct ( ezcMailOptions $options = null )
$options ezcMailOptions
Пример #1
0
 /**
  * Constructs an empty ezcMailComposer object.
  *
  * @param ezcMailComposerOptions $options
  */
 public function __construct(ezcMailComposerOptions $options = null)
 {
     $this->properties['plainText'] = null;
     $this->properties['htmlText'] = null;
     $this->properties['charset'] = 'us-ascii';
     $this->properties['encoding'] = ezcMail::EIGHT_BIT;
     if ($options === null) {
         $options = new ezcMailComposerOptions();
     }
     $this->options = $options;
     parent::__construct();
 }