mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
ImportSource: add fetchRowModifiers helper
This commit is contained in:
parent
637a9df3e2
commit
dd7a914fea
@ -22,4 +22,17 @@ class ImportSource extends DbObjectWithSettings
|
|||||||
protected $settingsTable = 'import_source_setting';
|
protected $settingsTable = 'import_source_setting';
|
||||||
|
|
||||||
protected $settingsRemoteId = 'source_id';
|
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')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user