src/Networks/Admitad.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 33-41 (lines=9) @@ | 
                                                            
                                    | 30 |  |     /** | 
                                                            
                                    | 31 |  |      * @method __construct | 
                                                            
                                    | 32 |  |      */ | 
                                                            
                                    | 33 |  |     public function __construct(string $username, string $password, string $idSite='') | 
                                                            
                                    | 34 |  |     { | 
                                                            
                                    | 35 |  |         $this->_network = new \Oara\Network\Publisher\Admitad; | 
                                                            
                                    | 36 |  |         $this->_username = $username; | 
                                                            
                                    | 37 |  |         $this->_password = $password; | 
                                                            
                                    | 38 |  |         $idSite = $this->_idSite; | 
                                                            
                                    | 39 |  |  | 
                                                            
                                    | 40 |  |         $this->login( $this->_username, $this->_password, $idSite ); | 
                                                            
                                    | 41 |  |     } | 
                                                            
                                    | 42 |  |  | 
                                                            
                                    | 43 |  |     public function login(string $username, string $password,string $idSite=''): bool{ | 
                                                            
                                    | 44 |  |         $this->_logged = false; | 
                                                                        
                 
                                                            
                    
src/Networks/AffiliateWindow.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 34-41 (lines=8) @@ | 
                                                            
                                    | 31 |  |     /** | 
                                                            
                                    | 32 |  |      * @method __construct | 
                                                            
                                    | 33 |  |      */ | 
                                                            
                                    | 34 |  |     public function __construct(string $username, string $password) | 
                                                            
                                    | 35 |  |     { | 
                                                            
                                    | 36 |  |         $this->_network = new AffiliateWindowEx; | 
                                                            
                                    | 37 |  |         $this->_username = $username; | 
                                                            
                                    | 38 |  |         $this->_password = $password; | 
                                                            
                                    | 39 |  |         $this->_apiClient = null; | 
                                                            
                                    | 40 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 41 |  |     } | 
                                                            
                                    | 42 |  |  | 
                                                            
                                    | 43 |  |     public function login(string $username, string $password): bool | 
                                                            
                                    | 44 |  |     { | 
                                                                        
                 
                                                            
                    
src/Networks/Affilinet.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 35-44 (lines=10) @@ | 
                                                            
                                    | 32 |  |     /** | 
                                                            
                                    | 33 |  |      * @method __construct | 
                                                            
                                    | 34 |  |      */ | 
                                                            
                                    | 35 |  |     public function __construct(string $username, string $passwordApi, string $idSite='') | 
                                                            
                                    | 36 |  |     { | 
                                                            
                                    | 37 |  |         $this->_network = new AffilinetEx; | 
                                                            
                                    | 38 |  |         $this->_username = $username; | 
                                                            
                                    | 39 |  |         $this->_password = $passwordApi; | 
                                                            
                                    | 40 |  |         $this->_passwordApi = $passwordApi; | 
                                                            
                                    | 41 |  |         $this->_website_id = $idSite; | 
                                                            
                                    | 42 |  |         $this->login( $this->_username, $this->_password ,$idSite); | 
                                                            
                                    | 43 |  |         // $this->_apiClient = \ApiClient::factory(PROTOCOL_JSON); | 
                                                            
                                    | 44 |  |     } | 
                                                            
                                    | 45 |  |  | 
                                                            
                                    | 46 |  |     /** | 
                                                            
                                    | 47 |  |      * @return bool | 
                                                                        
                 
                                                            
                    
src/Networks/Belboon.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 32-39 (lines=8) @@ | 
                                                            
                                    | 29 |  |     /** | 
                                                            
                                    | 30 |  |      * @method __construct | 
                                                            
                                    | 31 |  |      */ | 
                                                            
                                    | 32 |  |     public function __construct(string $username, string $password,string $idSite='') | 
                                                            
                                    | 33 |  |     { | 
                                                            
                                    | 34 |  |         $this->_network = new \Padosoft\AffiliateNetwork\BelboonEx; | 
                                                            
                                    | 35 |  |         $this->_username = $username; | 
                                                            
                                    | 36 |  |         $this->_password = $password; | 
                                                            
                                    | 37 |  |         $this->login( $this->_username, $this->_password, $idSite ); | 
                                                            
                                    | 38 |  |         $this->_apiClient = null; | 
                                                            
                                    | 39 |  |     } | 
                                                            
                                    | 40 |  |  | 
                                                            
                                    | 41 |  |     public function login(string $username, string $password, string $idSite=''): bool{ | 
                                                            
                                    | 42 |  |         $this->_logged = false; | 
                                                                        
                 
                                                            
                    
src/Networks/Daisycon.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 33-40 (lines=8) @@ | 
                                                            
                                    | 30 |  |     /** | 
                                                            
                                    | 31 |  |      * @method __construct | 
                                                            
                                    | 32 |  |      */ | 
                                                            
                                    | 33 |  |     public function __construct(string $username, string $password, string $idSite = '') | 
                                                            
                                    | 34 |  |     { | 
                                                            
                                    | 35 |  |         $this->_network = new \Oara\Network\Publisher\Daisycon; | 
                                                            
                                    | 36 |  |         $this->_username = $username; | 
                                                            
                                    | 37 |  |         $this->_password = $password; | 
                                                            
                                    | 38 |  |         $idSite = $this->_idSite; | 
                                                            
                                    | 39 |  |         $this->login( $this->_username, $this->_password, $idSite ); | 
                                                            
                                    | 40 |  |     } | 
                                                            
                                    | 41 |  |  | 
                                                            
                                    | 42 |  |     public function login(string $username, string $password,string $idSite=''): bool{ | 
                                                            
                                    | 43 |  |         $this->_logged = false; | 
                                                                        
                 
                                                            
                    
src/Networks/Ebay.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 33-53 (lines=21) @@ | 
                                                            
                                    | 30 |  |     /** | 
                                                            
                                    | 31 |  |      * @method __construct | 
                                                            
                                    | 32 |  |      */ | 
                                                            
                                    | 33 |  |     public function __construct(string $username, string $password, string $idSite='') | 
                                                            
                                    | 34 |  |     { | 
                                                            
                                    | 35 |  |         $this->_network = new  EbayEx; | 
                                                            
                                    | 36 |  |         $this->_username = $username; | 
                                                            
                                    | 37 |  |         $this->_password = $password; | 
                                                            
                                    | 38 |  |         if (trim($idSite)!=''){ | 
                                                            
                                    | 39 |  |             // Ebay needs Site to filter countries | 
                                                            
                                    | 40 |  |             $this->addAllowedSite($idSite); | 
                                                            
                                    | 41 |  |         } | 
                                                            
                                    | 42 |  |         /* | 
                                                            
                                    | 43 |  |         $apiUrl = 'http://ws.webgains.com/aws.php'; | 
                                                            
                                    | 44 |  |         $this->_apiClient = new \SoapClient($apiUrl, | 
                                                            
                                    | 45 |  |             array('login' => $this->_username, | 
                                                            
                                    | 46 |  |                 'encoding' => 'UTF-8', | 
                                                            
                                    | 47 |  |                 'password' => $this->_password, | 
                                                            
                                    | 48 |  |                 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE, | 
                                                            
                                    | 49 |  |                 'soap_version' => SOAP_1_1) | 
                                                            
                                    | 50 |  |         ); | 
                                                            
                                    | 51 |  |         */ | 
                                                            
                                    | 52 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 53 |  |     } | 
                                                            
                                    | 54 |  |  | 
                                                            
                                    | 55 |  |     public function addAllowedSite($idSite){ | 
                                                            
                                    | 56 |  |         if (trim($idSite)!=''){ | 
                                                                        
                 
                                                            
                    
src/Networks/Effiliation.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 32-39 (lines=8) @@ | 
                                                            
                                    | 29 |  |     /** | 
                                                            
                                    | 30 |  |      * @method __construct | 
                                                            
                                    | 31 |  |      */ | 
                                                            
                                    | 32 |  |     public function __construct(string $username, string $password,string $idSite='') | 
                                                            
                                    | 33 |  |     { | 
                                                            
                                    | 34 |  |         $this->_network = new \Padosoft\AffiliateNetwork\EffiliationEx; | 
                                                            
                                    | 35 |  |         $this->_username = $username; | 
                                                            
                                    | 36 |  |         $this->_password = $password; | 
                                                            
                                    | 37 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 38 |  |         $this->_apiClient = null; | 
                                                            
                                    | 39 |  |     } | 
                                                            
                                    | 40 |  |     public function login(string $username, string $password,string $idSite=''): bool{ | 
                                                            
                                    | 41 |  |         $this->_logged = false; | 
                                                            
                                    | 42 |  |         if (isNullOrEmpty( $password )) { | 
                                                                        
                 
                                                            
                    
src/Networks/ImpactRadius.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 33-41 (lines=9) @@ | 
                                                            
                                    | 30 |  |     /** | 
                                                            
                                    | 31 |  |      * @method __construct | 
                                                            
                                    | 32 |  |      */ | 
                                                            
                                    | 33 |  |     public function __construct(string $username, string $password) | 
                                                            
                                    | 34 |  |     { | 
                                                            
                                    | 35 |  |         $this->_network = new OaraImpactRadius; | 
                                                            
                                    | 36 |  |  | 
                                                            
                                    | 37 |  |         $this->_username = $username; | 
                                                            
                                    | 38 |  |         $this->_password = $password; | 
                                                            
                                    | 39 |  |         $this->_apiClient = null; | 
                                                            
                                    | 40 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 41 |  |     } | 
                                                            
                                    | 42 |  |  | 
                                                            
                                    | 43 |  |     public function login(string $username, string $password): bool | 
                                                            
                                    | 44 |  |     { | 
                                                                        
                 
                                                            
                    
src/Networks/LinkShare.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 33-41 (lines=9) @@ | 
                                                            
                                    | 30 |  |     /** | 
                                                            
                                    | 31 |  |      * @method __construct | 
                                                            
                                    | 32 |  |      */ | 
                                                            
                                    | 33 |  |     public function __construct(string $username, string $password, string $idSite='') | 
                                                            
                                    | 34 |  |     { | 
                                                            
                                    | 35 |  |         $this->_network = new \Oara\Network\Publisher\LinkShare; | 
                                                            
                                    | 36 |  |         $this->_username = $username; | 
                                                            
                                    | 37 |  |         $this->_password = $password; | 
                                                            
                                    | 38 |  |         $idSite = $this->_idSite; | 
                                                            
                                    | 39 |  |  | 
                                                            
                                    | 40 |  |         $this->login( $this->_username, $this->_password, $idSite ); | 
                                                            
                                    | 41 |  |     } | 
                                                            
                                    | 42 |  |  | 
                                                            
                                    | 43 |  |     public function login(string $username, string $password,string $idSite=''): bool{ | 
                                                            
                                    | 44 |  |         $this->_logged = false; | 
                                                                        
                 
                                                            
                    
src/Networks/NetAffiliation.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 38-47 (lines=10) @@ | 
                                                            
                                    | 35 |  |     /** | 
                                                            
                                    | 36 |  |      * @method __construct | 
                                                            
                                    | 37 |  |      */ | 
                                                            
                                    | 38 |  |     public function __construct(string $username, string $password,string $idSite='') | 
                                                            
                                    | 39 |  |     { | 
                                                            
                                    | 40 |  |         $this->_network = new NetAffiliationEx(); | 
                                                            
                                    | 41 |  |         $this->_username = $username; | 
                                                            
                                    | 42 |  |         $this->_password = $password; | 
                                                            
                                    | 43 |  |         if (trim($idSite)!=''){ | 
                                                            
                                    | 44 |  |             $this->addAllowedSite($idSite); | 
                                                            
                                    | 45 |  |         } | 
                                                            
                                    | 46 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 47 |  |     } | 
                                                            
                                    | 48 |  |  | 
                                                            
                                    | 49 |  |     public function addAllowedSite($idSite){ | 
                                                            
                                    | 50 |  |         if (trim($idSite)!=''){ | 
                                                                        
                 
                                                            
                    
src/Networks/Publicideas.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 35-43 (lines=9) @@ | 
                                                            
                                    | 32 |  |     /** | 
                                                            
                                    | 33 |  |      * @method __construct | 
                                                            
                                    | 34 |  |      */ | 
                                                            
                                    | 35 |  |     public function __construct(string $username, string $password, string $token='',string $partner_id='') | 
                                                            
                                    | 36 |  |     { | 
                                                            
                                    | 37 |  |         $this->_network = new \Oara\Network\Publisher\Publicidees; | 
                                                            
                                    | 38 |  |         $this->_username = $username; | 
                                                            
                                    | 39 |  |         $this->_password = $password; | 
                                                            
                                    | 40 |  |         $this->_token = $token; | 
                                                            
                                    | 41 |  |         $this->_partner_id = $partner_id; | 
                                                            
                                    | 42 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 43 |  |     } | 
                                                            
                                    | 44 |  |  | 
                                                            
                                    | 45 |  |     public function login(string $username, string $password,string $idSite=''): bool{ | 
                                                            
                                    | 46 |  |         $this->_logged = false; | 
                                                                        
                 
                                                            
                    
src/Networks/TradeDoubler.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 37-44 (lines=8) @@ | 
                                                            
                                    | 34 |  |     /** | 
                                                            
                                    | 35 |  |      * @method __construct | 
                                                            
                                    | 36 |  |      */ | 
                                                            
                                    | 37 |  |     public function __construct(string $username, string $password,string $idSite='') | 
                                                            
                                    | 38 |  |     { | 
                                                            
                                    | 39 |  |         $this->_network = new TradeDoublerEx; | 
                                                            
                                    | 40 |  |         $this->_username = $username; | 
                                                            
                                    | 41 |  |         $this->_password = $password; | 
                                                            
                                    | 42 |  |         $this->_apiClient = null; | 
                                                            
                                    | 43 |  |         $this->login( $this->_username, $this->_password ); | 
                                                            
                                    | 44 |  |     } | 
                                                            
                                    | 45 |  |  | 
                                                            
                                    | 46 |  |     public function login(string $username, string $password,string $idSite=''): bool | 
                                                            
                                    | 47 |  |     { |