$dataSetInstance->setUniqueKey(self::DB_COLUMN_USERNAME);
// Add registration elements to the dataset
- $registrationInstance->addElementsToDataSet($dataSetInstance, NULL);
+ $registrationInstance->addElementsToDataSet($dataSetInstance);
// "Insert" this request instance completely into the database
$this->queryInsertDataSet($dataSetInstance);
$dataSetInstance->setUniqueKey(self::DB_COLUMN_USERNAME);
// Add all update criteria to the database set
- $resultInstance->addElementsToDataSet($dataSetInstance, NULL);
+ $resultInstance->addElementsToDataSet($dataSetInstance);
// "Update" this request with the database
$this->getDatabaseInstance()->queryUpdateDataSet($dataSetInstance);
$dataSetInstance->setUniqueKey(self::DB_COLUMN_POINTS_UID);
// Add registration elements to the dataset
- $pointsInstance->addElementsToDataSet($dataSetInstance, NULL);
+ $pointsInstance->addElementsToDataSet($dataSetInstance);
// "Insert" this request instance completely into the database
$this->queryInsertDataSet($dataSetInstance);
$dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_USER_POINTS));
// Add all update criteria to the database set
- $resultInstance->addElementsToDataSet($dataSetInstance, NULL);
+ $resultInstance->addElementsToDataSet($dataSetInstance);
// Add seach criteria
$dataSetInstance->setSearchInstance($resultInstance->getUpdateInstance()->getSearchInstance());
use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
use Org\Mxchange\CoreFramework\Database\Frontend\DatabaseWrapper;
use Org\Mxchange\CoreFramework\Database\Backend\BaseDatabaseBackend;
-use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Result\Search\SearchableResult;
use Org\Mxchange\CoreFramework\Result\Update\UpdateableResult;
* Adds registration elements to a given dataset instance
*
* @param $criteriaInstance An instance of a StoreableCriteria class
- * @param $requestInstance An instance of a Requestable class
* @return void
*/
- public function addElementsToDataSet (StoreableCriteria $criteriaInstance, Requestable $requestInstance = NULL) {
+ public function addElementsToDataSet (StoreableCriteria $criteriaInstance) {
// Walk only through out-dated columns
foreach ($this->outDated as $key => $dummy) {
// Does this key exist?
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\User\ManageableAccount;
/**
* Adds registration elements to a given dataset instance
*
* @param $criteriaInstance An instance of a StoreableCriteria class
- * @param $requestInstance An instance of a Requestable class
* @return void
* @todo $requestInstance is currently unused
*/
- public function addElementsToDataSet (StoreableCriteria $criteriaInstance, Requestable $requestInstance = NULL) {
+ public function addElementsToDataSet (StoreableCriteria $criteriaInstance) {
// Add user id
$criteriaInstance->addCriteria(UserPointsDatabaseWrapper::DB_COLUMN_POINTS_UID, $this->getUserInstance()->getUserId());
// Import framework stuff
use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
-use Org\Mxchange\CoreFramework\Request\Requestable;
/**
* An interface for classes which are allowed to add criteria
* Adds registration elements to a given dataset instance
*
* @param $criteriaInstance An instance of a StoreableCriteria class
- * @param $requestInstance An instance of a Requestable class
* @return void
*/
- function addElementsToDataSet (StoreableCriteria $criteriaInstance, Requestable $requestInstance = NULL);
+ function addElementsToDataSet (StoreableCriteria $criteriaInstance);
}