public function count($condition = array()) { $total = 0; $pagesize = 1; $currentpage = 1; $xml = $this->ggfw_xml($condition, $pagesize, $currentpage); $cilentOptions = array('trace' => true, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE); $client = new SoapClient(WEB_URL, $cilentOptions); //echo $xml;exit(); $ret_str = $client->SelectCaseInfoList_GGFW(array('xmlCaseInfo' => $xml)); $ret_str = $ret_str->SelectCaseInfoList_GGFWResult; $ret_str = xml2Array($ret_str); //hg_pre($ret_str);exit(); if (!$ret_str['DATA']['ReturnInfo']['Status']) { return $total; } $Page = $ret_str['DATA']['PageInfo']; $total = $Page['TotalNumCount']; return $total; }