Files
smarty/libs/sysplugins/smarty_undefined_variable.php

34 lines
567 B
PHP
Raw Permalink Normal View History

2015-01-04 05:51:52 +01:00
<?php
/**
* class for undefined variable object
* This class defines an object for undefined variable handling
*
* @package Smarty
* @subpackage Template
*/
class Smarty_Undefined_Variable extends Smarty_Variable
2015-01-04 05:51:52 +01:00
{
/**
* Returns null for not existing properties
2015-01-04 05:51:52 +01:00
*
2018-06-12 09:58:15 +02:00
* @param string $name
2015-01-04 05:51:52 +01:00
*
* @return null
2015-01-04 05:51:52 +01:00
*/
public function __get($name)
{
return null;
2015-01-04 05:51:52 +01:00
}
/**
* Always returns an empty string.
*
* @return string
*/
public function __toString()
{
return '';
2015-01-04 05:51:52 +01:00
}
}