fix last commit
[GitHub/Stricted/Domain-Control-Panel.git] / lib / api / smarty / sysplugins / smarty_undefined_variable.php
CommitLineData
ccd27f54
S
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 */
10class 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}