ezsystems/ezpublish — pull request #323 by patrickallaert (2012-04-02 18:15:25+00:00)
Title: Optimized: eZTemplateSectionIterator attributes handling

Looks like much efforts has been done in the past to make it particularly inefficient :)

Wondering which of isset()/array_key_exists()/switch...case would be a good candidate:
isset(): avoided because the content might potentially be set to *null*
array_key_exists(): since this method is heavily used while generating templates, I preferred avoiding yet another function call at the price of duplicating the attributes name.