mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
IcingaConfig: object counts
This commit is contained in:
parent
19420b8c9f
commit
a421e5e608
@ -287,9 +287,11 @@ throw $e;
|
|||||||
$query = $this->db->select()->from(
|
$query = $this->db->select()->from(
|
||||||
array('cf' => 'director_generated_config_file'),
|
array('cf' => 'director_generated_config_file'),
|
||||||
array(
|
array(
|
||||||
'file_path' => 'cf.file_path',
|
'file_path' => 'cf.file_path',
|
||||||
'checksum' => 'f.checksum',
|
'checksum' => 'f.checksum',
|
||||||
'content' => 'f.content',
|
'content' => 'f.content',
|
||||||
|
'cnt_object' => 'f.cnt_object',
|
||||||
|
'cnt_template' => 'f.cnt_template',
|
||||||
)
|
)
|
||||||
)->join(
|
)->join(
|
||||||
array('f' => 'director_generated_file'),
|
array('f' => 'director_generated_file'),
|
||||||
@ -299,7 +301,10 @@ throw $e;
|
|||||||
|
|
||||||
foreach ($this->db->fetchAll($query) as $row) {
|
foreach ($this->db->fetchAll($query) as $row) {
|
||||||
$file = new IcingaConfigFile();
|
$file = new IcingaConfigFile();
|
||||||
$this->files[$row->file_path] = $file->setContent($row->content);
|
$this->files[$row->file_path] = $file
|
||||||
|
->setContent($row->content)
|
||||||
|
->setObjectCount($row->cnt_object)
|
||||||
|
->setTemplateCount($row->cnt_template);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user