mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Removed unneeded magic setters/getters/destructors and the like.
This commit is contained in:
@@ -42,12 +42,4 @@ abstract class Base
|
|||||||
*/
|
*/
|
||||||
abstract public function to_smarty_php(\Smarty\Parser\TemplateParser $parser);
|
abstract public function to_smarty_php(\Smarty\Parser\TemplateParser $parser);
|
||||||
|
|
||||||
/**
|
|
||||||
* Template data object destructor
|
|
||||||
*/
|
|
||||||
public function __destruct()
|
|
||||||
{
|
|
||||||
$this->data = null;
|
|
||||||
$this->subtrees = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -5,23 +5,9 @@ namespace Smarty;
|
|||||||
/**
|
/**
|
||||||
* class for undefined variable object
|
* class for undefined variable object
|
||||||
* This class defines an object for undefined variable handling
|
* This class defines an object for undefined variable handling
|
||||||
*
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
class UndefinedVariable extends Variable {
|
class UndefinedVariable extends Variable {
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns null for not existing properties
|
|
||||||
*
|
|
||||||
* @param string $name
|
|
||||||
*
|
|
||||||
* @return null
|
|
||||||
*/
|
|
||||||
public function __get($name) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Always returns an empty string.
|
* Always returns an empty string.
|
||||||
*
|
*
|
||||||
|
@@ -30,13 +30,4 @@ class Smarty_CacheResource_Apctest extends Smarty_CacheResource_Apc
|
|||||||
return $t ? $t : null;
|
return $t ? $t : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __sleep()
|
|
||||||
{
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __wakeup()
|
|
||||||
{
|
|
||||||
$this->__construct();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -29,13 +29,4 @@ class Smarty_CacheResource_Memcachetest extends Smarty_CacheResource_Memcache
|
|||||||
return $t ? $t : null;
|
return $t ? $t : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __sleep()
|
|
||||||
{
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __wakeup()
|
|
||||||
{
|
|
||||||
$this->__construct();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user