コード例 #1
0
 function updateMunicipalityCity($xmlStr)
 {
     if (!($domDoc = domxml_open_mem($xmlStr))) {
         return false;
     }
     $municipalityCity = new MunicipalityCity();
     $municipalityCity->parseDomDocument($domDoc);
     $ret = $municipalityCity->updateRecord();
     return $ret;
 }
コード例 #2
0
 function updateStatus($statusIDArray = "")
 {
     $rows = 0;
     $this->selectRecords();
     foreach ($this->arrayList as $key => $value) {
         $value->status = "inactive";
         $value->updateRecord();
     }
     foreach ($statusIDArray as $key => $value) {
         $municipalityCity = new MunicipalityCity();
         $municipalityCity->selectRecord($value);
         $municipalityCity->status = "active";
         $municipalityCity->updateRecord();
         $rows++;
     }
     return $rows;
 }