[TYPO3-dev] TCA user type - required
Boros Attila
attila at thebat.net
Tue May 18 16:18:52 CEST 2010
Hello Steffen,
Tuesday, May 18, 2010, 4:59:44 PM, you wrote:
SK> Internally tceforms has an array for required fields and adds fields
SK> from eval "required" to this array. Example:
$this->>registerRequiredProperty('field',
SK> $table.'_'.$row['uid'].'_'.$field, $PA['itemFormElName']);
SK> As the function is protected (why?) but the array not (hum :))
SK> you can add your field in the userfunction to the list of required
SK> fields, should work.
I don't understand how could I use the $this pointer in my code, I
have:
class tx_chrsites_tca{
public function myField($PA, $fObj)
{
...
}
}
--
Attila
More information about the TYPO3-dev
mailing list