Пример #1
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     if (isset($options['isHtml'])) {
         $this->_isHtml = $options['isHtml'];
     }
     if (isset($options['to'])) {
         $this->addTo($options['to']);
     }
     if (is_null($this->_to)) {
         $this->addTo($this->_data['email']);
     }
     $this->_emailRenderData['emailHeader'] = $this->_view->clientImage('logo.jpg', null, true);
     $footer = $this->_view->getClientText("email_notification_footer", $this->_data['language']);
     $this->_emailRenderData['footer'] = str_replace('##SITE-NAME##', $this->_siteName, $footer);
     $method = '_' . $this->_event . ucfirst($this->_recipient);
     $this->{$method}();
     $this->_view->assign('emailRenderData', $this->_emailRenderData);
     $this->_message = $this->_view->render('index/emailNotification.phtml');
     if ($options['send']) {
         $this->send();
     }
 }
Пример #2
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     var_dump($options);
     exit;
 }