예제 #1
0
파일: LandEncode.php 프로젝트: armic/erpts
 function getFirstPropertyID()
 {
     $LandList = new SoapObject(NCCBIZ . "LandList.php", "urn:Object");
     if (!($xmlStr = $LandList->getLandList($this->formArray["afsID"]))) {
         return false;
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             return false;
         } else {
             $landRecords = new LandRecords();
             $landRecords->parseDomDocument($domDoc);
             $list = $landRecords->getArrayList();
             foreach ($list as $key => $value) {
                 $propertyIDList[] = $value->propertyID;
             }
             sort($propertyIDList);
             return $propertyIDList[0];
         }
     }
 }