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;
|
return $this->object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function isObject()
|
||||||
|
{
|
||||||
|
return $this->getSentOrObjectValue('object_type') === 'object';
|
||||||
|
}
|
||||||
|
|
||||||
protected function isTemplate()
|
protected function isTemplate()
|
||||||
{
|
{
|
||||||
return $this->getSentOrObjectValue('object_type') === 'template';
|
return $this->getSentOrObjectValue('object_type') === 'template';
|
||||||
|
|
Loading…
Reference in New Issue