*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @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
*
/**
* Current table name to use
*/
- private $tableName = "unknown";
+ private $tableName = 'unknown';
/**
* Protected constructor
// Initialize the cache instance
$this->initCacheInstance();
-
- // Clean up a little
- $this->removeNumberFormaters();
- $this->removeSystemArray();
}
/**
} else {
// This invalid result must be wrapped
$result = array(
- 'status' => "invalid",
+ 'status' => 'invalid',
'exception' => $this->getDatabaseInstance()->getLastException()
);
}
* @return $numRows Numbers of rows of database entries
*/
public function doSelectCountByCriteria (Criteria $criteriaInstance) {
- // Total numbers is zero by default
+ // Total numbers is -1 so we can distinglish between failed and valid queries
$numRows = 0;
// Get the result from above method