DirectorObjectForm: add isObject helper

This commit is contained in:
Thomas Gelf 2016-03-06 09:47:42 +01:00
parent 00f8503033
commit ad8dfeb31d
1 changed files with 5 additions and 0 deletions

View File

@ -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';