| @@ 32-48 (lines=17) @@ | ||
| 29 | /** |
|
| 30 | * @method __construct |
|
| 31 | */ |
|
| 32 | public function __construct(string $username, string $password, string $idSite='') |
|
| 33 | { |
|
| 34 | $this->_network = new \Oara\Network\Publisher\TradeTracker; |
|
| 35 | $this->_username = $username; |
|
| 36 | $this->_password = $password; |
|
| 37 | /* |
|
| 38 | $apiUrl = 'http://ws.webgains.com/aws.php'; |
|
| 39 | $this->_apiClient = new \SoapClient($apiUrl, |
|
| 40 | array('login' => $this->_username, |
|
| 41 | 'encoding' => 'UTF-8', |
|
| 42 | 'password' => $this->_password, |
|
| 43 | 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE, |
|
| 44 | 'soap_version' => SOAP_1_1) |
|
| 45 | ); |
|
| 46 | */ |
|
| 47 | $this->login( $this->_username, $this->_password ); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function login(string $username, string $password,string $idSite=''): bool{ |
|
| 51 | $this->_logged = false; |
|
| @@ 38-45 (lines=8) @@ | ||
| 35 | /** |
|
| 36 | * @method __construct |
|
| 37 | */ |
|
| 38 | public function __construct(string $username, string $password,string $idSite='') |
|
| 39 | { |
|
| 40 | $this->_network = new ZanoxEx; |
|
| 41 | $this->_username = $username; |
|
| 42 | $this->_password = $password; |
|
| 43 | $this->login( $this->_username, $this->_password ); |
|
| 44 | ||
| 45 | } |
|
| 46 | ||
| 47 | public function login(string $username, string $password,string $idSite=''): bool |
|
| 48 | { |
|