[TYPO3-dev] Data Exchange between two plugins within the same extension

Ansgar Brauner ansgarb at gmail.com
Thu Jan 24 11:24:49 CET 2008


bernd wilke schrieb:
> why this split?
> 
> maybe you can manage all in one single plugin and you won't have to 
> bother about changing prefixes
> 
> something like:
> 
> function main (...) {
> 	[...]
> 	if ($mode == 1) {
> 		$this->displayView1(...);
> 	} else {
> 		$this->displayView2(...);
> 	}
> }
> 
> and you may have two separates files for defining these functions 
> 
> 
> Bernd 
> 

Hi Bernd,

because i have to switch several times. First i will have a
switch-statement in the main() Method. But to create, read, update or
delete an object on the second page i have to switch in the those
methods again. The Code is getting really confusing.

So the main problem seems to be, that i dont want to switch at several
positions.

So at the moment i do a switch in the main method and in every
displayAnything().

regards




More information about the TYPO3-dev mailing list