mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
DbObject: help IDE, render newline after a...
...disabled v1 object
This commit is contained in:
parent
5168f5e887
commit
87fe623d11
@ -1079,6 +1079,12 @@ abstract class DbObject
|
|||||||
return $objects;
|
return $objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param DbConnection $connection
|
||||||
|
* @param bool $force
|
||||||
|
*
|
||||||
|
* @return static[]
|
||||||
|
*/
|
||||||
public static function prefetchAll(DbConnection $connection, $force = false)
|
public static function prefetchAll(DbConnection $connection, $force = false)
|
||||||
{
|
{
|
||||||
$dummy = static::create();
|
$dummy = static::create();
|
||||||
|
@ -783,6 +783,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
return $this->arguments;
|
return $this->arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return IcingaObjectImports
|
||||||
|
*/
|
||||||
public function imports()
|
public function imports()
|
||||||
{
|
{
|
||||||
$this->assertImportsSupport();
|
$this->assertImportsSupport();
|
||||||
@ -1188,6 +1191,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return CustomVariables
|
||||||
|
*/
|
||||||
public function vars()
|
public function vars()
|
||||||
{
|
{
|
||||||
$this->assertCustomVarsSupport();
|
$this->assertCustomVarsSupport();
|
||||||
@ -2110,7 +2116,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
return
|
return
|
||||||
"# --- This object has been disabled ---\n"
|
"# --- This object has been disabled ---\n"
|
||||||
. preg_replace('~^~m', '# ', trim($str))
|
. preg_replace('~^~m', '# ', trim($str))
|
||||||
. "\n";
|
. "\n\n";
|
||||||
} else {
|
} else {
|
||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user