Pluf Framework

Pluf Framework Commit Details


Date:2009-04-25 03:49:50 (15 years 7 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:3a91a52cacbdc3fe7a7cb73814e90ce64fef40e9
Parents: 69bc435014d37d730777f18e664c7f8f055ccace
Message:Improved the speed by removind a function call.

It is faster to catch the exception when the index is not defined than
testing for the index before getting it.
Changes:

File differences

src/Pluf/Template/ContextVars.php
2828
2929
3030
31
31
32
33
3234
3335
34
3536
3637
3738
{
function offsetGet($prop)
{
if (!$this->offsetExists($prop)) {
try {
return parent::offsetGet($prop);
} catch (Exception $e) {
return '';
}
return parent::offsetGet($prop);
}
function __get($prop)

Archive Download the corresponding diff file

Branches

Tags

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