$configEntry = $resultInstance->getUpdateInstance()->getWrapperConfigEntry();
// Create object instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName($configEntry);
+ $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName($configEntry);
// Yes, then send the whole result to the database layer
$wrapperInstance->doUpdateByResult($this->getResultInstance());
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
+ * @todo Add missing own interface for public methods
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class NewsDatabaseWrapper extends BaseDatabaseWrapper {
+class NewsDatabaseWrapper extends BaseDatabaseWrapper implements Registerable {
// Constants for database table names
const DB_TABLE_NEWS = 'news';
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
+ * @todo Add missing own interface for public methods
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class PaymentsDatabaseWrapper extends BaseDatabaseWrapper {
+class PaymentsDatabaseWrapper extends BaseDatabaseWrapper implements Registerable {
// Constants for exceptions
const EXCEPTION_CLIENT_USERNAME_NOT_FOUND = 0x180;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class UserDatabaseWrapper extends BaseDatabaseWrapper implements ManageableAccountWrapper {
+class UserDatabaseWrapper extends BaseDatabaseWrapper implements ManageableAccountWrapper, Registerable {
// Constants for exceptions
const EXCEPTION_CLIENT_USERNAME_NOT_FOUND = 0x180;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class UserPointsDatabaseWrapper extends BaseDatabaseWrapper implements BookablePointsWrapper {
+class UserPointsDatabaseWrapper extends BaseDatabaseWrapper implements BookablePointsWrapper, Registerable {
/**
* Constants for database table names
*/
$criteriaInstance->setLimit(1);
// Get a wrapper instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('payment_db_wrapper_class');
+ $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('payment_db_wrapper_class');
// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
$searchInstance->setLimit(1);
// Get a wrapper instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_points_db_wrapper_class');
+ $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('user_points_db_wrapper_class');
// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($searchInstance);
$command = $this->getRequestInstance()->getRequestElement('command');
// First get a wrapper instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('news_db_wrapper_class');
+ $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('news_db_wrapper_class');
// Next create a searchable criteria instance
$criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
$command = $this->getRequestInstance()->getRequestElement('command');
// First get a wrapper instance
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('news_db_wrapper_class');
+ $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('news_db_wrapper_class');
// Next create a searchable criteria instance
$criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');