public function __construct() { parent::__construct(); $this->logger = new FileLogger(); if (is_writable(_PS_ROOT_DIR_ . '/log/')) { $this->logger->setFilename(_PS_ROOT_DIR_ . '/log/' . @date('Ymd') . '_installation.log'); } }
/** * @param bool $smtp_checked * @param string $server * @param string $login * @param string $password * @param int $port * @param string $encryption * @param string $email */ public function __construct($smtp_checked, $server, $login, $password, $port, $encryption, $email) { parent::__construct(); require_once _PS_CORE_DIR_ . '/tools/swift/swift_required.php'; $this->smtp_checked = $smtp_checked; $this->server = $server; $this->login = $login; $this->password = $password; $this->port = $port; $this->encryption = $encryption; $this->email = $email; }
/** * @param bool $smtp_checked * @param string $server * @param string $login * @param string $password * @param int $port * @param string $encryption * @param string $email */ public function __construct($smtp_checked, $server, $login, $password, $port, $encryption, $email) { parent::__construct(); require_once _PS_INSTALL_PATH_ . '../tools/swift/Swift.php'; require_once _PS_INSTALL_PATH_ . '../tools/swift/Swift/Connection/SMTP.php'; require_once _PS_INSTALL_PATH_ . '../tools/swift/Swift/Connection/NativeMail.php'; $this->smtp_checked = $smtp_checked; $this->server = $server; $this->login = $login; $this->password = $password; $this->port = $port; $this->encryption = $encryption; $this->email = $email; }