mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
DirectorObjectForm: add isObject helper
This commit is contained in:
parent
00f8503033
commit
ad8dfeb31d
@ -43,6 +43,11 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
return $this->object;
|
||||
}
|
||||
|
||||
protected function isObject()
|
||||
{
|
||||
return $this->getSentOrObjectValue('object_type') === 'object';
|
||||
}
|
||||
|
||||
protected function isTemplate()
|
||||
{
|
||||
return $this->getSentOrObjectValue('object_type') === 'template';
|
||||
|
Loading…
x
Reference in New Issue
Block a user