Пример #1
0
 /**
  * WPSDBlogCatalog.
  * 
  * @param $domain
  * @param $curl
  * @return unknown_type
  */
 function WPSDBlogCatalog($domain, $curl = false)
 {
     parent::WPSDStats();
     ///	$this->domain = $this->getNormalizedUrl($domain);
     //$this->address = "http://api.blogcatalog.com/bloginfo?bcwsid=yK7v16bA8r&url={$this->domain}";
     $form = new WPSDAdminConfigForm();
     $this->un = $form->getWpsdBlogCatalogUn();
     $this->address = 'http://www.blogcatalog.com/user/' . $this->un;
     if ($this->isOutdated()) {
         $this->xml = $this->fetchDataRemote($this->address);
         $this->set();
     } else {
         $this->set_cached();
     }
 }