mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- correction of PHPDoc blocks
- minor code cleanup
This commit is contained in:
@@ -7,22 +7,18 @@
|
||||
* @package Smarty
|
||||
* @subpackage Template
|
||||
*/
|
||||
class Smarty_Undefined_Variable
|
||||
class Smarty_Undefined_Variable extends Smarty_Variable
|
||||
{
|
||||
/**
|
||||
* Returns FALSE for 'nocache' and NULL otherwise.
|
||||
* Returns null for not existing properties
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return bool
|
||||
* @return null
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
if ($name == 'nocache') {
|
||||
return false;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user