]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/helper/web/blocks/class_WebBlockHelper.php
Email address confirmation now working (not in registration):
[shipsimu.git] / inc / classes / main / helper / web / blocks / class_WebBlockHelper.php
index d8a33eb79960fa66a21c467816764d35650cd426..5f1c43bfd19c71564782177db203f36b26b85fa7 100644 (file)
@@ -116,6 +116,23 @@ class WebBlockHelper extends BaseWebHelper implements HelpableTemplate {
                $this->getTemplateInstance()->assignVariable($linkField . '_action', $actionValue);
        }
 
+       /**
+        * "Filter" method for translating the raw user status into something human-readable
+        *
+        * @param       $userStatus             Raw user status from database layer
+        * @return      $translated             Translated user status
+        */
+       protected function doFilterUserStatusTranslator ($userStatus) {
+               // Generate message id
+               $messageId = 'user_status_' . strtolower($userStatus);
+
+               // Get that message
+               $translated = $this->getLanguageInstance()->getMessage($messageId);
+
+               // Return it
+               return $translated;
+       }
+
        /**
         * Flush the content out,e g. to a template variable
         *