コード例 #1
0
 /**
  * WPSDGooglePlus function.
  * 
  * @access public
  * @return void
  */
 function WPSDGooglePlus()
 {
     parent::WPSDStats();
     //$id = '107127911590007452165'; // debug.
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdGooglePlusUn());
     $id = $this->un;
     if ($this->isOutdated()) {
         $this->xml = strip_tags($this->fetchDataRemote(sprintf($this->address, $id), true, 1, true));
         preg_replace('/<script\\b[^>]*>(.*?)<\\/script>/is', "", $this->xml);
         $this->set();
     } else {
         $this->set_cached();
     }
     $this->address = "https://plus.google.com/{$id}/posts";
 }