diff --git a/modules/api/php/endpoints/project/dicoms.class.inc b/modules/api/php/endpoints/project/dicoms.class.inc index ec8020f218e..f9b03146ada 100644 --- a/modules/api/php/endpoints/project/dicoms.class.inc +++ b/modules/api/php/endpoints/project/dicoms.class.inc @@ -119,9 +119,10 @@ class Dicoms extends Endpoint implements \LORIS\Middleware\ETagCalculator ); } - $provisioner = new \LORIS\api\Provisioners\ProjectDicomsRowProvisioner( + $provisioner = new \LORIS\api\Provisioners\ProjectDicomsObjectProvisioner( $this->_project, - $since + $since, + '\LORIS\api\Models\ProjectDicomsRow' ); $dicoms = (new \LORIS\Data\Table()) ->withDataFrom($provisioner) diff --git a/modules/api/php/provisioners/projectdicomsrowprovisioner.class.inc b/modules/api/php/provisioners/projectdicomsobjectprovisioner.class.inc similarity index 84% rename from modules/api/php/provisioners/projectdicomsrowprovisioner.class.inc rename to modules/api/php/provisioners/projectdicomsobjectprovisioner.class.inc index c72093e7c7a..d69b86845fb 100644 --- a/modules/api/php/provisioners/projectdicomsrowprovisioner.class.inc +++ b/modules/api/php/provisioners/projectdicomsobjectprovisioner.class.inc @@ -28,7 +28,7 @@ use \LORIS\api\Models\ProjectDicomsRow; * @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 * @link https://www.github.com/aces/Loris/ */ -class ProjectDicomsRowProvisioner extends DBObjectProvisioner +class ProjectDicomsObjectProvisioner extends DBObjectProvisioner { /** * Create a RowProvisioner @@ -40,7 +40,7 @@ class ProjectDicomsRowProvisioner extends DBObjectProvisioner function __construct( \Project $project, \DateTime $since, - string $classname='default' + string $classname='ProjectDicomsObjectProvisioner' ) { parent::__construct( ' @@ -83,18 +83,5 @@ class ProjectDicomsRowProvisioner extends DBObjectProvisioner $classname ); } - - /** - * Returns an instance of a ProjectDicomsRow object for a given - * table row. - * - * @param array $row The database row from the LORIS Database class. - * - * @return \LORIS\Data\DataInstance An instance representing this row. - */ - public function getInstance($row) : \LORIS\Data\DataInstance - { - return new ProjectDicomsRow($row); - } }