[TYPO3-mvc] URIBuilder rewrite
Bastian Waidelich
bastian at typo3.org
Tue Aug 11 22:08:31 CEST 2009
Steffen Kamper wrote:
Hi Steffen,
> All the setters return $this - i think only reason is to queue the calls
> like $this->UriBuilder->setA()->setB()->setC()
Exactly. That's what I meant by "method chaining".
> I don't agree with getTargetPageUid. [...]
> Getters should be "silly"
You're right. I'll change this.
> $this->targetPageUid should be set in constructor to
> 1) TSFE: $GLOBALS['TSFE']->id
> 2) BE: _GP('id') <= remember that be modules can be connected to page
IMO it shouldn't be set in the constructor, but in the render() method
so you could write
$uriBuilder->setTargetPageUid(NULL);
if you'd want to unset the "explicit" target PID.
> Where is the switch for BE in render()? We need it :)
It is..... on it's way ;)
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list