mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 22:04:27 +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 $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