Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 8f85746

Browse files
author
Michael Grauer
committed
ENH: refs #258. added module param to allow calling getAll from a module model.
1 parent 730d039 commit 8f85746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/models/MIDASDatabasePdo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,15 @@ public function findBy($var, $value)
254254
* find all DAO
255255
* @return daos
256256
*/
257-
public function getAll($modelName)
257+
public function getAll($modelName, $module = '')
258258
{
259259
$rowset = $this->fetchAll($this->select());
260260
$return = array();
261261
$this->ModelLoader = new MIDAS_ModelLoader();
262-
$model = $this->ModelLoader->loadModel($modelName);
262+
$model = $this->ModelLoader->loadModel($modelName, $module);
263263
foreach($rowset as $row)
264264
{
265-
$return[] = $model->initDao($modelName, $row);
265+
$return[] = $model->initDao($modelName, $row, $module);
266266
}
267267
return $return;
268268
} //end method getAll

0 commit comments

Comments
 (0)