示例#1
0
 /**
  * Get the list of subdomains for a given user.
  * @global type $zdbh
  * @return type 
  */
 public function GetSubDomainsForUser()
 {
     global $zdbh;
     $request_data = $this->RawXMWSToArray($this->wsdata);
     $response_xml = "\n";
     $allSubdomains = module_controller::ListSubDomains($request_data['content']);
     if (!fs_director::CheckForEmptyValue($allSubdomains)) {
         foreach ($allSubdomains as $domain) {
             $response_xml = $response_xml . ws_xmws::NewXMLContentSection('subdomain', array('subname' => $domain['subname'], 'subdirectory' => $domain['subdirectory'], 'subactive' => $domain['subactive'], 'subid' => $domain['subid']));
         }
     }
     $dataobject = new runtime_dataobject();
     $dataobject->addItemValue('response', '');
     $dataobject->addItemValue('content', $response_xml);
     return $dataobject->getDataObject();
 }