summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2015-04-14 22:13:35 +0200
committerKevin Chabowski <kevin@kch42.de>2015-04-14 22:13:35 +0200
commit17f662cc6ff4f50c30270a23f6679af1b251e82c (patch)
tree6121b4cc2596ffe37c2fd79a446d30843e40ccd3 /src
parent51438e2ce27d4caee69d310d27a0f2b865cdcdb8 (diff)
downloadste-17f662cc6ff4f50c30270a23f6679af1b251e82c.tar.gz
ste-17f662cc6ff4f50c30270a23f6679af1b251e82c.tar.bz2
ste-17f662cc6ff4f50c30270a23f6679af1b251e82c.zip
$escape_method is now private
Diffstat (limited to 'src')
-rw-r--r--src/ste/STECore.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ste/STECore.php b/src/ste/STECore.php
index 4637aaa..91a96ca 100644
--- a/src/ste/STECore.php
+++ b/src/ste/STECore.php
@@ -16,7 +16,7 @@ class STECore {
private $tags;
private $storage_access;
private $cur_tpl_dir;
- public $escape_method = self::ESCAPE_NONE;
+ private $escape_method = self::ESCAPE_NONE;
public $scope;
/*
@@ -39,9 +39,12 @@ class STECore {
*
* Parameters:
* $storage_access - An Instance of a <StorageAccess> implementation.
+ * $escape_method - One of the ESCAPE_* constants
*/
- public function __construct($storage_access) {
+ public function __construct($storage_access, $escape_method=self::ESCAPE_NONE) {
$this->storage_access = $storage_access;
+ $this->escape_method = $escape_method;
+
$this->cur_tpl_dir = "/";
STEStandardLibrary::_register_lib($this);
$this->blockorder = array();