NTLMSoapClient::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( $wsdl, array $options = [] )
$options array
    public function __construct($wsdl, array $options = array())
    {
        parent::__construct($wsdl, $options);
        if (array_key_exists('login', $options)) {
            $this->username = $options['login'];
        }
        if (array_key_exists('password', $options)) {
            $this->password = $options['password'];
        }
    }

Usage Example

예제 #1
0
 /**
  * Constructor
  * 
  * @param string $wsdl
  * @param array $options
  */
 public function __construct($wsdl, $options)
 {
     // verify that a user name and password were entered
     if (empty($options['user']) || empty($options['password'])) {
         throw new EWS_Exception('A username and password is required.');
     }
     // end if no user name and password were entered
     // set the username and password properties
     $this->user = $options['user'];
     $this->password = $options['password'];
     parent::__construct($wsdl, $options);
 }
All Usage Examples Of NTLMSoapClient::__construct