[TYPO3-dev] Value Object as a Controller Argument?

Christian Stüdemann typo3.v01 at christian-stuedemann.de
Sat Dec 27 01:41:30 CET 2014


Dear all,

it's nice and easy to register entity objects as controller arguments, 
but is there a way to map URL parameters to transient value objects in 
the same way?

Background:

I've got a set of filter criteria for my list action (by date, by name, 
by category...). Those criteria are not stored to the database, thus 
they are temporarily stored to a "Filter" value object and not to an 
entity object. This "Filter" object holds all available filter information.

I now want to map the URL-parameters defining those filter criteria 
values directly to the "Filter" object (using a validator to check the 
filter values). I want to avoid using something like 
$this->request->getArguments(), but I want the framework to do most of 
the job automatically.

Any ideas?!

Looking forward to your assistance, best regards,
Christian



More information about the TYPO3-dev mailing list