Pluf Framework

Sign in or create your account | Project List | Help

Pluf Framework Commit Details

Date:2009-10-11 20:48:52 (5 months 7 days ago)
Author:Loïc d'Anterroches
Commit:3b49fd0e960195d65f359358e6d404207e2d7e0c
Message:Improved the speed to get an index from the context object.

Files: src/Pluf/Template/ContextVars.php (1 diff)

Change Details

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

Archive Download the corresponding diff file

Branches:
master