[TYPO3-mvc] Model with flexform property
Bas van der Togt
b.vandertogt at profinit.com
Mon Feb 18 18:30:52 CET 2013
Hello,
In my model i have a property which contains a flexform.
How can i transform the plain flexform data to a useful object or array?
Regards,
Bas
My TCA:
'pushbox' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:blok/Resources/Private/Language/locallang_db.xlf:tx_blok_domain_model_brand.pushbox',
'config' => Array (
'type' => 'flex',
'ds_pointerField' => 'list_type',
'ds' => array(
'default' => '
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>...
My Model:
class Brand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
/**
* pushbox
*
* @var \string
*/
protected $pushbox;
/**
* Returns the pushbox
*
* @return \string $pushbox
*/
public function getPushbox() {
return $this->pushbox;
}
/**
* Sets the pushbox
*
* @param \string $pushbox
* @return void
*/
public function setPushbox($pushbox) {
$this->pushbox = $this-> $pushbox;
}
}
More information about the TYPO3-project-typo3v4mvc
mailing list