protected function __construct() {
// Call parent constructor
parent::__construct(__CLASS__);
-
- // Set description
- $this->setObjectDescription("Datenbank-Mittelschicht");
-
- // Create an unique ID
- $this->generateUniqueId();
}
// Create new database connection layer
}
/**
- * Analyses if a unique ID has already been used or not. This method does
- * only pass the given ID through to the "real" database layer.
+ * Getter for index key
*
- * @param $uniqueID A unique ID number which shall be checked
- * before it will be used
- * @param $inConstructor If called from a constructor or from
- * somewhere else
- * @return $isUnused true = The unique ID was not found in the database,
- * false = It is already in use by an other object
+ * @return $indexKey Index key
*/
- public function isUniqueIdUsed ($uniqueID, $inConstructor = false) {
- // Connect to the database
- $this->dbLayer->connectToDatabase();
-
- // Pass the returning result through
- return $this->dbLayer->isUniqueIdUsed($uniqueID, $inConstructor);
+ public final function getIndexKey () {
+ return $this->dbLayer->getIndexKey();
}
/**