34 return "File Object Settings have been updated.";
56 $db = $environment->
getResource(Setup\Environment::RESOURCE_DATABASE);
57 $client_ini = $environment->
getResource(Setup\Environment::RESOURCE_CLIENT_INI);
59 $use_ascii_characters_only = $client_ini->readVariable(
65 "INSERT IGNORE settings (module, keyword, value) VALUES (%s, %s, %s)",
66 [
'text',
'text',
'text'],
67 [
'file_access',
'download_ascii_filename', $use_ascii_characters_only ?
'1' :
'0']
71 "UPDATE settings SET module = 'file_access' WHERE keyword = 'bgtask_download'" 74 $client_ini->removeGroup(
'file_access');
80 public function isApplicable(
Environment $environment):
bool 85 $client_ini = $environment->
getResource(Setup\Environment::RESOURCE_CLIENT_INI);
87 return $client_ini->groupExists(
"file_access");
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getPreconditions(Environment $environment)
An environment holds resources to be used in the setup process.