mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
SyncRule: add helper method fetching properties
This commit is contained in:
parent
676e694078
commit
826cafb476
@ -21,6 +21,17 @@ class SyncRule extends DbObject
|
||||
'filter_expression' => null,
|
||||
);
|
||||
|
||||
public function fetchSyncProperties()
|
||||
{
|
||||
$db = $this->getDb();
|
||||
return SyncProperty::loadAll(
|
||||
$this->getConnection(),
|
||||
$db->select()->from('sync_property')->where('rule_id = ?', $this->id)
|
||||
);
|
||||
|
||||
return $this->syncProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
protected $properties = array();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user