Re: [TYPO3-english] XClassing again

2013-03-29 Thread Kay Strobach
Hello Tomasz, there is a different between TYPO3 4.5 and 6.0! http://wiki.typo3.org/Xclass It's important, that prior 6.0 each class needs the xclass loop. In 6.0 you may use the autoloading mechanism for xclassing ;) Xclassing is only working if you use t3lib_div::makeInstance. Xclasses are

Re: [TYPO3-english] XClassing again

2013-03-29 Thread Tomasz Krawczyk
Hello Kay, I know the difference between 4.x and 6.x (http://forum.typo3.org/index.php/t/194848/). I successively xclassed those classes: ?php $extPath = t3lib_extMgm::extPath('imagickimg'); return array( 'ux_GraphicalFunctions' = $extPath . 'Classes/Xclass/GraphicalFunctions.php',

Re: [TYPO3-english] XClassing again

2013-03-29 Thread Philipp Gampe
Hi Tomasz Krawczyk, Tomasz Krawczyk wrote: but this leads to an Exception: #1: PHP Catchable Fatal Error: Argument 1 passed to ux_LocalPreviewHelper::__construct() must be an instance of LocalImageProcessor, instance of TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor given in D:

[TYPO3-english] XClassing again

2013-03-28 Thread Tomasz Krawczyk
Hi list, is it possible to XClass a class which takes some parameters in its constructor? -- regards Tomasz ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] XClassing again

2013-03-28 Thread Kay Strobach
Am 28.03.13 19:09, schrieb Tomasz Krawczyk: Hi list, is it possible to XClass a class which takes some parameters in its constructor? Most times, yes, but the interface must be equal! Regards Kay -- http://www.kay-strobach.de - Open Source Rocks TYPO3 inspiring people to share!

Re: [TYPO3-english] XClassing again

2013-03-28 Thread Tomasz Krawczyk
is it possible to XClass a class which takes some parameters in its constructor? Most times, yes, but the interface must be equal! Regards Kay Could you tell me where I can see this? I have a problem XClassing LocalPreviewHelper class... cheers Tomasz