[Typo3-dev] Extending classes

Didier Geheniau didier.geheniau at feas.net
Wed Nov 12 15:56:00 CET 2003


Hi all,

I find it a nice feature that you can extend existing classes. Though
not all classes can be extended. There are class functions that are
called direct (classname::function). Those classes can't be extended. An
example is t3lib_BEfunc::readPageAccess that is called in the web_perm
extention.

It's maybe a good thing to define that all classes must be initiated the
typo way t3lib_div::makeInstance(classname). With the exeption (and the
only exeption) t3lib_div::makeInstance().

Ofcoars the current code must be cleaned so all class::function calls
are replaced by:

$var = t3lib_div::makeInstance(classname);
$var->function;

Regards,

Didier






More information about the TYPO3-dev mailing list