[TYPO3-project-seminars] Using the hooks

Christian Lerrahn (Cerebrum) christian.lerrahn at cerebrum.com.au
Wed Aug 12 15:28:53 CEST 2009


Hi Niels,
> > I'm trying to use the hooks in seminars but so far with little
> > success. I've already found out that the naming scheme is somewhat
> > unorthodox and my method is being called.
> > 
> > The problem I have now, is that the only parameter that is passed is
> > the seminars class object which seems unusable because most of its
> > properties are private. Using one of the class' methods results in a
> > PHP error.
> > 
> > However, at the same time it seems that there is no return value
> > expected from the hooks.
> > 
> > Did I just get it wrong is there a bug somewhere?
> 
> Well, the attributes and methods are kept private by intention. We
> only want to offer a limited API so we are able to change the other
> stuff without further notice.

Let me get that right. The hooks are useless but they have to be
because otherwise you would have to keep an API over time. What are
they there for then? I'm not sure I get it. :(

> The hook doesn't expect a return value as the hook expects that you
> are using the templating methods available in the seminars object.

Ok. But that's what I can;t do because of the structure of the object,
right?

Cheers,
Christian


More information about the TYPO3-project-seminars mailing list