示例#1
0
 /**
  * __construct function.
  * 
  * @access public
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdMyspaceUn());
     if ('' != $this->un) {
         $this->address = 'http://www.myspace.com/' . $this->un;
         if ($this->isOutdated()) {
             $this->xml = str_replace(',', '', $this->fetchDataRemote($this->address, false, 1, true));
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }