ImportSource: add fetchRowModifiers helper

This commit is contained in:
Thomas Gelf 2016-02-19 02:47:12 +01:00
parent 637a9df3e2
commit dd7a914fea
1 changed files with 13 additions and 0 deletions

View File

@ -22,4 +22,17 @@ class ImportSource extends DbObjectWithSettings
protected $settingsTable = 'import_source_setting';
protected $settingsRemoteId = 'source_id';
public function fetchRowModifiers()
{
$db = $this->getDb();
return ImportRowModifier::loadAll(
$this->getConnection(),
$db->select()
->from('import_row_modifier')
->where('source_id = ?', $this->id)
->order('priority DESC')
);
}
}