Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
<?php
2
 
3
/**
4
 * class for undefined variable object
5
 * This class defines an object for undefined variable handling
6
 *
7
 * @package    Smarty
8
 * @subpackage Template
9
 */
10
class Smarty_Undefined_Variable extends Smarty_Variable
11
{
12
    /**
13
     * Returns null for not existing properties
14
     *
15
     * @param string $name
16
     *
17
     * @return null
18
     */
19
    public function __get($name)
20
    {
21
        return null;
22
    }
23
 
24
    /**
25
     * Always returns an empty string.
26
     *
27
     * @return string
28
     */
29
    public function __toString()
30
    {
31
        return '';
32
    }
33
}