/** * @constuctor * * @param string $identifier form identifier * @param \TYPO3\CMS\Extbase\DomainObject\AbstractEntity $model model */ public function __construct($identifier, $tablename = '', $recordIdentifier = false) { parent::__construct($identifier); $this->tablename = $tablename; $this->recordIdentifier = $recordIdentifier; if ($this->tablename != '' && $this->recordIdentifier && $this->recordIdentifier > 0) { $resource = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->tablename, 'uid = ' . $this->recordIdentifier); if (($record = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resource)) !== FALSE) { $this->data = $record; } } $this->mode = 'crud/classic'; }
/** * @constuctor * * @param string $identifier form identifier * @param \TYPO3\CMS\Extbase\DomainObject\AbstractEntity $model model */ public function __construct($identifier, \TYPO3\CMS\Extbase\DomainObject\AbstractEntity $model) { parent::__construct($identifier); $this->mode = 'crud/extbase'; $this->model = $model; }