[TYPO3-dev] RFC: Fully rewritten doc_core_services
Steffen Müller
typo3 at t3node.com
Wed Feb 25 12:06:13 CET 2009
Hi.
On 20.02.2009 20:53 Francois Suter wrote:
>
> It still needs proofreading and a sanity check, but I would be quite
> glad to already have some feedback, especially if you think about stuff
> that you would like to see in this manual.
>
good one! I was already delighted with your presentation at swiss ug
(seen on the web). But this one even beats it. This opened up a new
field in TYPO3 to me.
Some few remarks about the code examples:
- According to the forthcoming cgl, assignments in conditions need an
extra bracket:
while (($fields = $GLOBALS['TYPO3_DB']->sql_fetch_result($res))) {}
- boolean values in uppercase:
$authenticated = TRUE;
Personally I don't like break statements inside while. An alternative
could be a boolean helper variable:
while (!$userFound && is_object(...)) {
// do stuff...
if (...) {
$userFound = TRUE;
}
}
I couldn't find this in the cgl.
--
cheers,
Steffen
http://www.t3node.com/
More information about the TYPO3-dev
mailing list