From: Roland Haeder Date: Tue, 7 Apr 2015 21:22:10 +0000 (+0200) Subject: startElement(), finishElement() and characterHandler() must be public as they X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=606d43cc38f3cefd2c899f99c03dbd8cfb625441;ds=inline startElement(), finishElement() and characterHandler() must be public as they are called from XmlParser class. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/template/mail/class_MailTemplateEngine.php b/inc/classes/main/template/mail/class_MailTemplateEngine.php index 93e0f252..7c66d76e 100644 --- a/inc/classes/main/template/mail/class_MailTemplateEngine.php +++ b/inc/classes/main/template/mail/class_MailTemplateEngine.php @@ -146,7 +146,7 @@ class MailTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void * @throws InvalidXmlNodeException If an unknown/invalid XML node name was found */ - protected function startElement ($resource, $element, array $attributes) { + public function startElement ($resource, $element, array $attributes) { // Initial method name which will never be called... $methodName = 'initEmail'; @@ -179,7 +179,7 @@ class MailTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void * @throws XmlNodeMismatchException If current main node mismatches the closing one */ - protected function finishElement ($resource, $nodeName) { + public function finishElement ($resource, $nodeName) { // Make all lower-case $nodeName = strtolower($nodeName); @@ -207,7 +207,7 @@ class MailTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @param $characters Characters to handle * @return void */ - protected function characterHandler ($resource, $characters) { + public function characterHandler ($resource, $characters) { // Trim all spaces away $characters = trim($characters);