Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * Create new samba authentication provider
  *
  * @param string $host Hostname or IP of windows machine
  */
 public function __construct($host)
 {
     parent::__construct($host);
     $this->host = $host;
 }
Пример #3
0
 /**
  * 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;
 }
Пример #4
0
 /**
  * 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;
 }
Пример #5
0
 /**
  * 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;
 }