[TYPO3-dev] Instantiation of backend modules/classes

Rik Willems rik at actiview.nl
Fri Jun 24 12:37:58 CEST 2011


Hi all,

I have noticed that in backend modules the instantiation of classes 
happen at the bottom of the same file [1]. Now when I want to extend 
that class for an own extension it's not possible because the class is 
instantiated upon include of the file.
Is there a way to prevent the instantiation? Can anybody explain why 
this setup was chosen?

Cheers! Rik

[1] Example from typo3/alt_db_navframe.php

// Make instance if it is not an AJAX call
if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
	$SOBE = t3lib_div::makeInstance('SC_alt_db_navframe');
	$SOBE->init();
	$SOBE->initPage();
	$SOBE->main();
	$SOBE->printContent();
}




More information about the TYPO3-dev mailing list