Пример #1
0
 /**
  * WPSDEmpireAvenue.
  * 
  * @param boolean $curl
  */
 function WPSDEmpireAvenue($curl = false)
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdEaveUn());
     $this->pw = trim($form->getWpsdEavePw());
     $this->auth = "?apikey={$this->key}&username={$this->un}&password={$this->pw}";
     if ('' != $this->un && '' != $this->pw) {
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->getServiceUri('info'));
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }