function updateImprovementsBuildingsDepreciation($xmlStr)
 {
     if (!($domDoc = domxml_open_mem($xmlStr))) {
         return false;
     }
     $improvementsBuildingsDepreciation = new ImprovementsBuildingsDepreciation();
     $improvementsBuildingsDepreciation->parseDomDocument($domDoc);
     $ret = $improvementsBuildingsDepreciation->updateRecord();
     return $ret;
 }
 function updateStatus($statusIDArray = "")
 {
     $rows = 0;
     $this->selectRecords();
     foreach ($this->arrayList as $key => $value) {
         $value->status = "inactive";
         $value->updateRecord();
     }
     foreach ($statusIDArray as $key => $value) {
         $improvementsBuildingsDepreciation = new ImprovementsBuildingsDepreciation();
         $improvementsBuildingsDepreciation->selectRecord($value);
         $improvementsBuildingsDepreciation->status = "active";
         $improvementsBuildingsDepreciation->updateRecord();
         $rows++;
     }
     return $rows;
 }