Make text public

This commit is contained in:
Dennis Eichhorn 2017-10-07 19:03:20 +02:00
parent 770cb56f7b
commit 75b1651423

View File

@ -168,7 +168,7 @@ class View extends ViewAbstract
*
* @since 1.0.0
*/
protected function getText(string $translation, string $module = null, string $theme = null) : string
public function getText(string $translation, string $module = null, string $theme = null) : string
{
if (!isset($module)) {
$match = '/Modules/';
@ -208,7 +208,7 @@ class View extends ViewAbstract
*
* @since 1.0.0
*/
protected function getHtml(string $translation, string $module = null, string $theme = null) : string
public function getHtml(string $translation, string $module = null, string $theme = null) : string
{
return htmlspecialchars($this->getText($translation, $module, $theme));
}
@ -222,7 +222,7 @@ class View extends ViewAbstract
*
* @since 1.0.0
*/
protected function printHtml(string $text) : string
public function printHtml(string $text) : string
{
return htmlspecialchars($text);
}