public function __construct($params = NULL) { parent::__construct($params); $this->_mailer = $params['mailer']; $this->_from = $params['from']; $this->_to = $params['to']; $this->_mailer->From = $this->_from; $this->_mailer->FromName = 'Logga Mailer'; $this->_mailer->addAddress($this->_to); }
public function __construct($params = NULL) { parent::__construct($params); if (!$params || !isset($params['url'])) { throw new \Logga\Exceptions\LoggaException("HttpStream needs a valid URL but none has been provided"); } else { $this->_url = $params['url']; } if (!$params || !isset($params['additional_params']) || !is_array($params['additional_params'])) { $this->_additionalParams = array(); } else { $this->_additionalParams = $params['additional_params']; } }
public function __construct($params = NULL) { parent::__construct($params); if (!$params || !isset($params['path'])) { $this->_path = getcwd(); } else { $this->_path = $params['path']; } if (!$params || !isset($params['file'])) { $this->_file = 'default_log'; } else { $this->_file = $params['file']; } if (!$params || !isset($params['truncate'])) { $this->_truncate = FALSE; } else { $this->_truncate = (bool) $params['truncate']; } if (@$params['date']) { $this->_file .= '_' . date('Y-m-d_H-i-s'); } $this->_file .= '.log'; }
public function __construct($params = NULL) { parent::__construct($params); }