/**
* Current table name to use
*/
- private $tableName = "unknown";
+ private $tableName = 'unknown';
/**
* Protected constructor
} 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