The Results persistence layer is called ResultsService.php but is fairly tricky to work with because it requires an instance of taoResultServer_models_classes_ReadableResultStorage to be passed to it as an implementation.

## Step 1: Create a constants.php file and add it to your module

You need to create a constants.php file and make sure it is placed in the following location \includes\constants.php

## Step 2: Import the correct classes into your module

protected $resultsService; protected$rdsResultsStorage;
public function __construct() {
$this->rdsResultsStorage = new RdsResultStorage();$this->resultsService = ResultsService::singleton();
$this->resultsService->setImplementation($this->rdsResultsStorage);
}