[TYPO3-dev] getter_setter script

Xavier Perseguers typo3 at perseguers.ch
Thu Sep 4 11:42:45 CEST 2008


Hi,

> For me recent projects I wrote a small script that allows me to generate 
> a getter_setter class for any DB table of the TYPO3 Installatin. Most of 
> the time I have to do the same thing with an class.
> 
> I will paste a sample class generated from this script here. What I'd 
> like to know is if there are grave errors of thinking and if there's a 
> way to make a new instance of the object without the pid.
> 
> If someone is interessted I could try to do an extension from my current 
> script.

I think you could enhance your script with information on this page:
http://latrine.dgx.cz/property-setters-and-getters-final-solution

because using method getTitle() and setTitle() is "standard" but 
absolutely not handy.

Cheers

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html




More information about the TYPO3-dev mailing list