IcingaObject: document 'supports' vars and methods
This commit is contained in:
parent
a17fc32b41
commit
42212661f2
|
@ -20,20 +20,30 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
|
|
||||||
protected $autoincKeyName = 'id';
|
protected $autoincKeyName = 'id';
|
||||||
|
|
||||||
|
/** @var bool Whether this Object supports custom variables */
|
||||||
protected $supportsCustomVars = false;
|
protected $supportsCustomVars = false;
|
||||||
|
|
||||||
|
/** @var bool Whether there exist Groups for this object type */
|
||||||
protected $supportsGroups = false;
|
protected $supportsGroups = false;
|
||||||
|
|
||||||
|
/** @var bool Whether this Object makes use of (time) ranges */
|
||||||
protected $supportsRanges = false;
|
protected $supportsRanges = false;
|
||||||
|
|
||||||
|
/** @var bool Whether this object supports (command) Arguments */
|
||||||
protected $supportsArguments = false;
|
protected $supportsArguments = false;
|
||||||
|
|
||||||
|
/** @var bool Whether inheritance via "imports" property is supported */
|
||||||
protected $supportsImports = false;
|
protected $supportsImports = false;
|
||||||
|
|
||||||
|
/** @var bool Allows controlled custom var access through Fields */
|
||||||
protected $supportsFields = false;
|
protected $supportsFields = false;
|
||||||
|
|
||||||
|
/** @var bool Whether this object can be rendered as 'apply Object' */
|
||||||
protected $supportsApplyRules = false;
|
protected $supportsApplyRules = false;
|
||||||
|
|
||||||
|
/** @var bool Whether Sets of object can be defined */
|
||||||
|
protected $supportsSets = false;
|
||||||
|
|
||||||
protected $rangeClass;
|
protected $rangeClass;
|
||||||
|
|
||||||
protected $type;
|
protected $type;
|
||||||
|
@ -227,31 +237,61 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this Object supports custom variables
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function supportsCustomVars()
|
public function supportsCustomVars()
|
||||||
{
|
{
|
||||||
return $this->supportsCustomVars;
|
return $this->supportsCustomVars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether there exist Groups for this object type
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function supportsGroups()
|
public function supportsGroups()
|
||||||
{
|
{
|
||||||
return $this->supportsGroups;
|
return $this->supportsGroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this Object makes use of (time) ranges
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function supportsRanges()
|
public function supportsRanges()
|
||||||
{
|
{
|
||||||
return $this->supportsRanges;
|
return $this->supportsRanges;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this object supports (command) Arguments
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function supportsArguments()
|
public function supportsArguments()
|
||||||
{
|
{
|
||||||
return $this->supportsArguments;
|
return $this->supportsArguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this object supports inheritance through the "imports" property
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function supportsImports()
|
public function supportsImports()
|
||||||
{
|
{
|
||||||
return $this->supportsImports;
|
return $this->supportsImports;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this object allows controlled custom var access through fields
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function supportsFields()
|
public function supportsFields()
|
||||||
{
|
{
|
||||||
return $this->supportsFields;
|
return $this->supportsFields;
|
||||||
|
|
Loading…
Reference in New Issue