/**
  * 	method:	executeRouter
  *
  * 	todo: write documentation
  */
 protected function executeRouter()
 {
     //	Finalise the router
     Amslib_Router::finalise();
     //	NOTE:	we do not do it because webservice urls are typically not enabled with languages
     //			therefore if you run the code which sets the language based on the url here, you might be in spanish
     //			but then this code will default to setting english and all the language strings processed
     //			in the webservice will come out in english instead of spanish like the website url might be dictating
     if (Amslib_Router::isService() == false) {
         self::setLanguage("content", Amslib_Router::getLanguage());
         self::setLanguage("website", Amslib_Router::getLanguage());
     }
 }
Esempio n. 2
0
 /**
  * 	method:	getLanguage
  *
  * 	todo: write documentation
  */
 public function getLanguage($test = NULL, $success = true, $failure = false)
 {
     $lang = Amslib_Router::getLanguage();
     if ($test === NULL) {
         return $lang;
     }
     return $lang === $test ? $success : $failure;
 }