Skip to content

Commit

Permalink
[API] Chenged to ProjectDicomsObjectProvisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
spell00 committed Aug 20, 2020
1 parent c18314b commit fe1002e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
5 changes: 3 additions & 2 deletions modules/api/php/endpoints/project/dicoms.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,7 +40,7 @@ class ProjectDicomsRowProvisioner extends DBObjectProvisioner
function __construct(
\Project $project,
\DateTime $since,
string $classname='default'
string $classname='ProjectDicomsObjectProvisioner'
) {
parent::__construct(
'
Expand Down Expand Up @@ -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);
}
}

0 comments on commit fe1002e

Please sign in to comment.