}
/**
- * 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;
}
}