Style convention applied (incomplete), pre/post filters added for form handler
[shipsimu.git] / inc / classes / main / language / class_LanguageSystem.php
index 35db75c562c4a81abd44dac09078ed656249e1b7..47a7c0b4fa77cd3ff47cd394d606d6e945c4723d 100644 (file)
@@ -120,49 +120,46 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage {
        }
 
        /**
-        * Initialize the array-object for all later language strings
+        * Setter for base path
         *
+        * @param               $basePath               The local base path for all templates
         * @return      void
         */
-       public function initLanguageStrings () {
-               $this->langStrings = new FrameworkArrayObject();
+       protected final function setBasePath ($basePath) {
+               // And set it
+               $this->basePath = (string) $basePath;
        }
 
        /**
-        * Setter for base path
+        * Setter for language code
         *
-        * @param               $basePath               The local base path for all templates
+        * @param               $langCode               The language code for the current application
         * @return      void
         */
-       public final function setBasePath ($basePath) {
+       protected final function setLanguageCode ($langCode) {
                // Cast it
-               $basePath = (string) $basePath;
+               $langCode = (string) $langCode;
 
-               // And set it
-               $this->basePath = $basePath;
+               // And set it (only 2 chars)
+               $this->langCode = substr($langCode, 0, 2);
        }
 
        /**
-        * Getter for language code
+        * Initialize the array-object for all later language strings
         *
-        * @return      $langCode               The language code for the current application
+        * @return      void
         */
-       public final function getLanguageCode () {
-               return $this->langCode;
+       public function initLanguageStrings () {
+               $this->langStrings = new FrameworkArrayObject();
        }
 
        /**
-        * Setter for language code
+        * Getter for language code
         *
-        * @param               $langCode               The language code for the current application
-        * @return      void
+        * @return      $langCode               The language code for the current application
         */
-       public final function setLanguageCode ($langCode) {
-               // Cast it
-               $langCode = (string) $langCode;
-
-               // And set it (only 2 chars)
-               $this->langCode = substr($langCode, 0, 2);
+       public final function getLanguageCode () {
+               return $this->langCode;
        }
 }