/** * Create new FTP authentication provider * * @param string $host Hostname or IP of FTP server * @param boolean $secure TRUE to enable SSL */ public function __construct($host, $secure = false) { $this->host = $host; $this->secure = $secure; $this->protocol = 'ftp'; if ($this->secure) { $this->protocol .= 's'; } parent::__construct($this->protocol . '://' . $this->host); }
/** * Create new samba authentication provider * * @param string $host Hostname or IP of windows machine */ public function __construct($host) { parent::__construct($host); $this->host = $host; }
/** * Create new IMAP authentication provider * * @param string $mailbox PHP imap_open mailbox definition, e.g. * {127.0.0.1:143/imap/readonly} */ public function __construct($mailbox) { parent::__construct($mailbox); $this->mailbox = $mailbox; }
/** * Create new IMAP authentication provider * * @param string $mailbox PHP imap_open mailbox definition, e.g. * {127.0.0.1:143/imap/readonly} */ public function __construct($mailbox, $domain = '') { parent::__construct($mailbox); $this->mailbox = $mailbox; $this->domain = $domain; }
/** * Create new UCenter authentication provider * * @param string $ucenter user_external backend identifier, e.g. * myUcBackend */ public function __construct($ucenter) { parent::__construct($ucenter); $this->ucenter = $ucenter; }