*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
/**
* Found value
*/
- private $foundValue = "";
+ private $foundValue = '';
/**
* Protected constructor
protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
-
- // Clean up a little
- $this->removeNumberFormaters();
- $this->removeSystemArray();
}
/**
}
/**
- * Determines wether the status of the query was fine ("ok")
+ * Determines wether the status of the query was fine (LocalfileDatabase::RESULT_OKAY)
*
* @return $ifStatusOkay Wether the status of the query was okay
*/
public function ifStatusIsOkay () {
- return ((isset($this->resultArray['status'])) && ($this->resultArray['status'] === "ok"));
+ return ((isset($this->resultArray['status'])) && ($this->resultArray['status'] === LocalfileDatabase::RESULT_OKAY));
}
/**
} // END - if
} // END - while
- // Set affected rows
- $this->setAffectedRows($foundEntries);
-
// If no entry is found/updated throw an exception
if ($foundEntries == 0) {
// Throw an exception here
throw new ResultUpdateException($this, self::EXCEPTION_RESULT_UPDATE_FAILED);
} // END - if
- // Set search instance
- $this->setSearchInstance($searchInstance);
+ // Set affected rows
+ $this->setAffectedRows($foundEntries);
+
+ // Set update instance
+ $this->setUpdateInstance($criteriaInstance);
}
/**