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
|
|
|
|
*/
|
2017-10-26 10:25:41 +02:00
|
|
|
class Smarty_Undefined_Variable extends Smarty_Variable
|
2015-01-04 05:51:52 +01:00
|
|
|
{
|
|
|
|
/**
|
2017-10-26 10:25:41 +02: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
|
|
|
*
|
2017-10-26 10:25:41 +02:00
|
|
|
* @return null
|
2015-01-04 05:51:52 +01:00
|
|
|
*/
|
|
|
|
public function __get($name)
|
|
|
|
{
|
2018-08-31 16:45:09 +02:00
|
|
|
return null;
|
2015-01-04 05:51:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Always returns an empty string.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function __toString()
|
|
|
|
{
|
2017-11-06 01:02:56 +01:00
|
|
|
return '';
|
2015-01-04 05:51:52 +01:00
|
|
|
}
|
|
|
|
}
|