mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-60736 tool_mobile: Support session lang in WS
This commit is contained in:
parent
e236259d97
commit
bb14a48851
2 changed files with 47 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue