[TYPO3-core] USER_CINT again

Bernhard Kraft kraftb at kraftb.at
Sat Mar 4 14:54:05 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Kutschker wrote:

> I'm currently in favour or the array as return value. Just one call to the main plugin dispatcher method (as is IMHO custom in TYPO3) and a flexible return value for future addiitons like cache-control for page snippets (very portal-like).

I also liked that in the beginning. I also do it a lot in my own extensions. But it isn't very
often seen in the core. Except if the result is "really" some kind of array (rows, etc.)


> No, create a COA_CINT/COA_MINT for that purpose.

Yar. Correct.

Didn't know how I came to TEXT.

10 = COA_MINT
10 {
	10 = TEXT
	10.date = H:i @ d-m-Y
	wrap = Todays date: <b> | </b>
	cache = 1
	cache {
		# half hour after end of day
		until = dayend+1800
	}
}

you would have to make the until fields +calc (and probably also +stdWrap, I don't like
it that those +calc fields don't get +stdWrapped first :(

for +calc you should introduce something variables: daystart, dayend, weekstart, etc.

I know ... I'm rather on the TS side ... you think about languages userGroups and that stuff.


greets,
Bernhard
- --
- ----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
- ----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFECZv9Il4dkVkDMFkRAgqBAKCszP6poi9Mr5vkiO3b8PIQJff+vQCdHCYB
fS1nE8w/mpBwb+R1WqqL1vc=
=2mCU
-----END PGP SIGNATURE-----



More information about the TYPO3-team-core mailing list