summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/XHTML/Template.php
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2016-02-05 16:28:08 +0100
committerJaime Perez Crespo <jaime.perez@uninett.no>2016-02-05 16:28:08 +0100
commit9796a60f2020cd7b2486c8421b49f77793be5fd8 (patch)
tree40c926cd4d3f211e866df87b16776042b5973ac3 /lib/SimpleSAML/XHTML/Template.php
parentc39a471839c5c84b554fa7e885cf45e6acedc69d (diff)
downloadsimplesamlphp-9796a60f2020cd7b2486c8421b49f77793be5fd8.zip
simplesamlphp-9796a60f2020cd7b2486c8421b49f77793be5fd8.tar.gz
simplesamlphp-9796a60f2020cd7b2486c8421b49f77793be5fd8.tar.bz2
Restore previously deleted private methods, they are used from the templates.
Diffstat (limited to 'lib/SimpleSAML/XHTML/Template.php')
-rw-r--r--lib/SimpleSAML/XHTML/Template.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index c496628..05f7277 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -220,6 +220,13 @@ class SimpleSAML_XHTML_Template
\SimpleSAML\Locale\Language::setLanguageCookie($language);
}
+ /**
+ * Wraps Language->getLanguageList
+ */
+ private function getLanguageList() {
+ return $this->translator->language->getLanguageList();
+ }
+
/**
* @param $tag
@@ -246,6 +253,20 @@ class SimpleSAML_XHTML_Template
/**
+ * Includes a file relative to the template base directory.
+ * This function can be used to include headers and footers etc.
+ *
+ */
+ private function includeAtTemplateBase($file) {
+ $data = $this->data;
+
+ $filename = $this->findTemplatePath($file);
+
+ include($filename);
+ }
+
+
+ /**
* Wraps Translate->includeInlineTranslation()
*
* @see \SimpleSAML\Locale\Translate::includeInlineTranslation()
@@ -271,6 +292,14 @@ class SimpleSAML_XHTML_Template
/**
+ * Wrap Language->isLanguageRTL
+ */
+ private function isLanguageRTL() {
+ return $this->translator->language->isLanguageRTL();
+ }
+
+
+ /**
* Merge two translation arrays.
*
* @param array $def The array holding string definitions.