diff --git a/library/Director/Objects/ImportSource.php b/library/Director/Objects/ImportSource.php index 2e1615a2..4b4d117b 100644 --- a/library/Director/Objects/ImportSource.php +++ b/library/Director/Objects/ImportSource.php @@ -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') + ); + } + }