summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_resource_php.php
diff options
context:
space:
mode:
authorUwe.Tews <uwe.tews@localhost>2009-12-27 15:06:49 +0000
committerUwe.Tews <uwe.tews@localhost>2009-12-27 15:06:49 +0000
commit44dd7830ddef97f8a87f5637d191d805c7a61f51 (patch)
tree3d9872233d250af86ef2e8fb9cde4b94a2b384cf /libs/sysplugins/smarty_internal_resource_php.php
parent5f02276a2a0b9237c7801e5541ddf90ae5e5ed4f (diff)
downloadsmarty-44dd7830ddef97f8a87f5637d191d805c7a61f51.tar.gz
smarty-44dd7830ddef97f8a87f5637d191d805c7a61f51.tar.bz2
smarty-44dd7830ddef97f8a87f5637d191d805c7a61f51.zip
--- this is a major update with a couple of internal changes ---
- new config file lexer/parser (thanks to Thue Jnaus Kristensen) - template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen) - fix on registered plugins with different type but same name - rewrite of plugin handling (optimized execution speed) - closed a security hole regarding PHP code injection into cache files - fixed bug in clear cache handling - Renamed a couple of internal classes - code cleanup for merging compiled templates - couple of runtime optimizations (still not all done)
Diffstat (limited to 'libs/sysplugins/smarty_internal_resource_php.php')
-rw-r--r--libs/sysplugins/smarty_internal_resource_php.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/libs/sysplugins/smarty_internal_resource_php.php b/libs/sysplugins/smarty_internal_resource_php.php
index f3ed97db..7dee7ec7 100644
--- a/libs/sysplugins/smarty_internal_resource_php.php
+++ b/libs/sysplugins/smarty_internal_resource_php.php
@@ -21,6 +21,9 @@ class Smarty_Internal_Resource_PHP {
$this->smarty = $smarty;
ini_set('short_open_tag', '1');
}
+ // properties
+ public $usesCompiler = false;
+ public $isEvaluated = false;
/**
* Return flag if template source is existing
@@ -80,27 +83,6 @@ class Smarty_Internal_Resource_PHP {
}
}
- /**
- * Return flag that this resource not use the compiler
- *
- * @return boolean false
- */
- public function usesCompiler()
- {
- // does not use compiler, template is PHP
- return false;
- }
-
- /**
- * Return flag that this is not evaluated
- *
- * @return boolean false
- */
- public function isEvaluated()
- {
- // does not use compiler, must be false
- return false;
- }
/**
* Get filepath to compiled template