MDL-60736 tool_mobile: Support session lang in WS

This commit is contained in:
Juan Leyva 2018-01-15 18:09:01 +01:00
parent e236259d97
commit bb14a48851
2 changed files with 47 additions and 5 deletions

View file

@ -1175,6 +1175,9 @@ class external_settings {
/** @var string In which file should the urls be rewritten */
private $file = 'webservice/pluginfile.php';
/** @var string The session lang */
private $lang = '';
/**
* Constructor - protected - can not be instanciated
*/
@ -1277,6 +1280,24 @@ class external_settings {
public function get_file() {
return $this->file;
}
/**
* Set lang
*
* @param string $lang
*/
public function set_lang($lang) {
$this->lang = $lang;
}
/**
* Get lang
*
* @return string
*/
public function get_lang() {
return $this->lang;
}
}
/**