[TYPO3-mvc] ItemsProcFunc and Namespaces

Heiko Kromm | Paints h.kromm at paints.de
Fri May 31 14:00:02 CEST 2013


Hi Frans, 

thanks for your answer. 
Calling the Function with: 
<itemsProcFunc>Myvendor\Myextension\Hook\ItemsProcFunc->createItems</itemsProcFunc> 
works. 

The problem was my function declaration. It has to be: public function createItems(array &$config, $parentObject) 

Thanks 
Heiko 

----- Ursprüngliche Mail -----

Von: "Frans Saris" <franssaris at gmail.com> 
An: "TYPO3 v4 MVC project" <typo3-project-typo3v4mvc at lists.typo3.org> 
Gesendet: Donnerstag, 30. Mai 2013 18:49:46 
Betreff: Re: [TYPO3-mvc] ItemsProcFunc and Namespaces 

Hi Heiko, 

Don't het the whole context. But you mean something like: 

'EXT:media/Classes/Hooks/NawSecuredl.php:TYPO3\CMS\Media\Hooks\NawSecuredl->preOutput'; 

File:classname_incluiding_namespace->funtion_name 

Gr. Frans 
Op 30 mei 2013 17:22 schreef "Heiko Kromm | Paints" <h.kromm at paints.de> het 
volgende: 

> Hi List, 
> 
> I want to call a ItemsProcFunc with a new extbase extension using 
> namespaces. 
> 
> I placed my Class in Classes/Hook and the filename is ItemsProcFunc.php. 
> The content of this file is (shortend): 
> <?php 
> namespace Myvendor\Myextension\Hook; 
> 
> class ItemsProcFunc { 
> 
> public function createItems(array &$config, t3lib_TCEforms 
> $parentObject) { 
> ... 
> } 
> } 
> ?> 
> 
> How can I call the createItems function with ItemsProcFunc? 
> 
> Thanks for your help 
> Heiko 
> _______________________________________________ 
> TYPO3-project-typo3v4mvc mailing list 
> TYPO3-project-typo3v4mvc at lists.typo3.org 
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc 
> 
_______________________________________________ 
TYPO3-project-typo3v4mvc mailing list 
TYPO3-project-typo3v4mvc at lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc 



-- 




Paints Multimedia GmbH 
Heiko Kromm 


Lange Reihe 29 
20099 Hamburg 


Tel: + 49 (0)40 - 27 808 285 
Fax: + 49 (0)40 - 27 808 286 


E-Mail: h.kromm at paints.de 
Internet: www.paints.de 


-------------------------------------------- 


Geschäftsführer : F. Till, J. Wähning 
HRB 86114, Hamburg 
Ust.ID.Nr. DE226211017 



More information about the TYPO3-project-typo3v4mvc mailing list