Private GIT

Skip to content
Snippets Groups Projects
Commit 3358af26 authored by Guillaume28's avatar Guillaume28
Browse files

fix(brokercfg): export with filter

parent be68d42e
Branches
No related tags found
No related merge requests found
......@@ -693,8 +693,14 @@ class CentreonCentbrokerCfg extends CentreonObject
*
* @return void
*/
public function export($filters = null)
public function export($filter_id = null, $filter_name = null)
{
$filters = null;
if (!is_null($filter_id)) {
$filters = array(
$this->object->getPrimaryKey() => $filter_id
);
}
$elements = $this->object->getList("*", -1, 0, null, null, $filters, "AND");
foreach ($elements as $element) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment