Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] t3lib_div::makeInstance does not support initializationparameters within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, Does it mean that I should use the new keyword for such case? Or why does the framework force ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
Does it mean that I should use the new keyword for such case? Or why does the framework force me to create a initialization function distinct from the constructor? I do not understand this... -- Xavier Perseguers http://xavier.perseguers.ch/en _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi!
Xavier Perseguers wrote: > Does it mean that I should use the new keyword for such case? Or why > does the framework force me to create a initialization function distinct > from the constructor? > > I do not understand this... $class = t3lib_div::makeInstanceClassName('tx_whatever'); $inst = new $class($param); -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/post-details/t...ng_in_eclipse/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hi Dmitry,
>> Does it mean that I should use the new keyword for such case? Or why >> does the framework force me to create a initialization function >> distinct from the constructor? >> >> I do not understand this... > > $class = t3lib_div::makeInstanceClassName('tx_whatever'); > $inst = new $class($param); Ouf! I saw this method but it seems I went to quick over it ![]() Thanks. I really appreciate this much more than having to call a special method after the initialization. -- Xavier Perseguers http://xavier.perseguers.ch/en _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-templavoila] t3lib_div::xml2array choking on characters | Antonio Reher | typo3-project-templavoila@lists.netfielders.de | 1 | 20.05.2008 18:46 |
| [TYPO3-german] t3lib_div::() gibts nicht? | Christian Leicht | typo3-german@lists.netfielders.de | 1 | 28.04.2008 17:01 |
| [TYPO3] corrupted class.t3lib_div.php? | Cate & Peter | typo3-english@lists.netfielders.de | 2 | 15.02.2008 12:03 |
| [TYPO3-templavoila] Missing makeInstance inclass.tx_templavoila_mod1_specialdoktypes.php | Tapio Markula | typo3-project-templavoila@lists.netfielders.de | 0 | 15.08.2007 22:59 |
| [TYPO3-german] Wohin schreibt t3lib_div::devLog() ? | Rolf Masfelder | typo3-german@lists.netfielders.de | 4 | 21.12.2006 02:46 |