Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * @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';
 }