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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DbConnection $connection
|
||||
* @param bool $force
|
||||
*
|
||||
* @return static[]
|
||||
*/
|
||||
public static function prefetchAll(DbConnection $connection, $force = false)
|
||||
{
|
||||
$dummy = static::create();
|
||||
|
|
|
@ -783,6 +783,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
return $this->arguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IcingaObjectImports
|
||||
*/
|
||||
public function imports()
|
||||
{
|
||||
$this->assertImportsSupport();
|
||||
|
@ -1188,6 +1191,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CustomVariables
|
||||
*/
|
||||
public function vars()
|
||||
{
|
||||
$this->assertCustomVarsSupport();
|
||||
|
@ -2110,7 +2116,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
return
|
||||
"# --- This object has been disabled ---\n"
|
||||
. preg_replace('~^~m', '# ', trim($str))
|
||||
. "\n";
|
||||
. "\n\n";
|
||||
} else {
|
||||
return $str;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue