[TYPO3-ect] ECT library

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Thu Mar 9 12:47:13 CET 2006


Ernesto Baschny [cron IT] schrieb:
> "Anker" is called "anchor" in english. But it might be more intuitive to
> call it "getATag()", what do you think?

Ooops. I alread thought to call it makeTag(). That should do. There is
only one tag in question.

I don't want to call it getTag() because it is not a simple getter but
also starts the internal evaluation. makeTag indcates this, so it is
more clear that it can only be called after all settings have been done.

> If this is related to TS-typolink "parameter", I would also call it
> "parameter" as it might be misleading to have two different names for
> the same thing. An external Url might not be a "page" and an
> Email-Adress is definitively not a "page".
> 

You are right for page. That is still not the ultimative solution.

Parameter I would like to reserve for the url parameters. I don't like
to repeat the naming chaos of typolink here. I have written the class
to reach a simple intuitve usage, that meets with common terms, not
with typoslang.

urls => parameters
tags => attributes
frames => targets

So this terms are taken.

For the page parameter I am still looking for a third clear term.

> In the constructor, you might want to pass a reference to a cObject,
> instead of making a new one based on the passed class. As a Plugin I
> already have a valid cObject which I could just pass to the ect_link
> constructor.
> 

That is true. I came from the point of the most simple programming
API. But passing the cObject should be one of the usage possiblities
at least, to get the best performance. The simple API could be
improved with in internal reusable singleton.


Regards

Elmar









More information about the TYPO3-team-extension-coordination mailing list