*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* Array for connection data
*/
private $connectData = array(
- 'login' => "",
- 'pass' => "",
- 'dbase' => "",
- 'host' => ""
+ 'login' => '',
+ 'pass' => '',
+ 'dbase' => '',
+ 'host' => ''
);
// The real database layer
}
// Public setter for database connection
- public final function setConnectionData ($login, $pass, $dbase, $host="localhost") {
+ public final function setConnectionData ($login, $pass, $dbase, $host='localhost') {
// Transfer connection data
$this->connectData['login'] = (string) $login;
$this->connectData['pass'] = (string) $pass;
}
/**
- * Runs a "select" statement on the database layer with given table name
+ * Runs a 'select' statement on the database layer with given table name
* and criteria. If this doesn't fail the result will be returned
*
- * @param $tableName Name of the "table" we shall query
+ * @param $tableName Name of the 'table' we shall query
* @param $criteriaInstance An instance of a Criteria class
* @return $result The result as an array
*/
$this->dbLayer->connectToDatabase();
// Get result from query
- $result = $this->dbLayer->querySelect("array", $tableName, $criteriaInstance);
+ $result = $this->dbLayer->querySelect('array', $tableName, $criteriaInstance);
// Return the result
return $result;
}
/**
- * "Inserts" a data set instance into a local file database folder
+ * 'Inserts' a data set instance into a local file database folder
*
* @param $dataSetInstance A storeable data set
* @return void
}
/**
- * "Updates" a data set instance with a database layer
+ * 'Updates' a data set instance with a database layer
*
* @param $dataSetInstance A storeable data set
* @return void