$value) { unset($this->$key); } } /** * Get a specific item from the cache * @var string $path examples: app/exec or core/domains */ public function get($path) { //get the app_languages.php if (strlen($path) > 0) { require_once glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/".$path."/app_{languages}.php",GLOB_BRACE); } else { require_once getcwd().'/app_languages.php'; } //add multi-lingual support foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //return the array of translations return $text; } } ?>