pluf2

pluf2 Commit Details


Date:2009-10-11 13:48:52 (15 years 2 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:3b49fd0e960195d65f359358e6d404207e2d7e0c
Parents: a3551b508a6509f89c488ef11dc9768994a2db55
Message:Improved the speed to get an index from the context object.

Changes:

File differences

src/Pluf/Template/ContextVars.php
2626
2727
2828
29
30
31
32
33
34
35
36
37
3829
3930
40
31
4132
42
33
4334
4435
4536
*/
class Pluf_Template_ContextVars extends ArrayObject
{
function offsetGet($prop)
{
try {
return parent::offsetGet($prop);
} catch (Exception $e) {
return '';
}
}
function __get($prop)
{
return $this->offsetGet($prop);
return (isset($this[$prop])) ? $this[$prop] : '';
}
function __toString()
{
return var_export($this, true);

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06550s using 13 queries.