[TYPO3-50-general] RFC: Arguments with identifiers

Sebastian Kurfürst sebastian at typo3.org
Thu Jan 8 14:37:31 CET 2009


Hi Robert,
>> Proposed solution:
>> I'd like to make the "Argument" object aware of an identifier.
>> Thus, in the above example, you would write $this-
>>> arguments['customer']->getIdentifier() instead of // GET IDENTIFIER.
>
> yes, that's how I proposed it in our discussion, right?
Yep. I wrote this mail because of the detail implementation below :-)

>>> However, internally, it is not clean if the "Argument" object
>>> directly
>> checks for the "identifier" array property.
>> That's why I'd like to add a new method to PropertyConverters which  
>> is
>> called "getIdentifier()" - resolving the above identifier.
>> As not all PropertyConverters need such a method, I'd encapsulate  
>> this
>> in a new interface. (Property\Converter\IdentifierFacetInterface or
>> so)
> Anyway, in practice that means that most developers don't have to care
> about this because they will use the standard
> DomainObjectPropertyConverter,
> correct?
Yep.

Greets,
Sebastian


More information about the TYPO3-project-5_0-general mailing list