]> git.mxchange.org Git - friendica.git/blob - vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php
Add Smarty to Composer
[friendica.git] / vendor / smarty / smarty / libs / sysplugins / smarty_undefined_variable.php
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
11 {
12     /**
13      * Returns FALSE for 'nocache' and NULL otherwise.
14      *
15      * @param  string $name
16      *
17      * @return bool
18      */
19     public function __get($name)
20     {
21         if ($name == 'nocache') {
22             return false;
23         } else {
24             return null;
25         }
26     }
27
28     /**
29      * Always returns an empty string.
30      *
31      * @return string
32      */
33     public function __toString()
34     {
35         return "";
36     }
37 }