/** * add element fo the form * * @param string $type element type * @param string $name element name * @param array $configuration element configuration * @return \Ameos\AmeosForm\Form this */ public function add($name, $type = '', $configuration = [], $overrideFunction = false) { parent::add($name, $type, $configuration); if ($overrideFunction !== false) { $this->elements[$name]->setOverrideClause($overrideFunction); } return $this; }
/** * @constuctor * * @param string $identifier form identifier * @param \TYPO3\CMS\Extbase\DomainObject\AbstractEntity $model model */ public function __construct($identifier) { parent::__construct($identifier); $this->mode = 'crud/manual'; }