Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
32d87c09
Commit
32d87c09
authored
5 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Document change for the ILIAS group.
parent
a9b0f5aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
settings.php
+8
-6
8 additions, 6 deletions
settings.php
with
8 additions
and
6 deletions
settings.php
+
8
−
6
View file @
32d87c09
...
...
@@ -27,7 +27,6 @@ defined('MOODLE_INTERNAL') || die();
require_once
(
__DIR__
.
'/settingslib.php'
);
require_once
(
__DIR__
.
'/stack/options.class.php'
);
// Useful links.
$links
=
array
(
get_string
(
'stackDoc_docs_desc'
,
'qtype_stack'
,
...
...
@@ -49,7 +48,6 @@ $settings->add(new admin_setting_heading('docs',
get_string
(
'settingusefullinks'
,
'qtype_stack'
),
'* '
.
implode
(
"
\n
* "
,
$links
)));
// Options for connection to Maxima.
// Note that any settings here where we try to set the default
// intelligently in install.php, the default here must be null.
...
...
@@ -113,12 +111,18 @@ $settings->add(new admin_setting_configcheckbox('qtype_stack/casdebugging',
get_string
(
'settingcasdebugging'
,
'qtype_stack'
),
get_string
(
'settingcasdebugging_desc'
,
'qtype_stack'
),
0
));
// @codingStandardsIgnoreStart
// ILIAS: will need to replicate this cache.
// The Moodle cache API is quite simple, so to replicate it we need only implement
// $cache = cache::make('qtype_stack', 'parsercache');
// $ast = $cache->get($cachekey); // Returns null/false or something if key not present.
// $cache->set($cachekey, $ast);
// Or, it is already possible to disable this, because there is a config variable that can be set to 0 to disable.
// @codingStandardsIgnoreEnd
$settings
->
add
(
new
admin_setting_configtext
(
'qtype_stack/parsercacheinputlength'
,
get_string
(
'settingparsercacheinputlength'
,
'qtype_stack'
),
get_string
(
'settingparsercacheinputlength_desc'
,
'qtype_stack'
),
50
,
PARAM_INT
,
3
));
// Options for maths display.
$settings
->
add
(
new
admin_setting_heading
(
'mathsdisplayheading'
,
get_string
(
'settingsmathsdisplayheading'
,
'qtype_stack'
),
''
));
...
...
@@ -135,7 +139,6 @@ $settings->add(new admin_setting_configcheckbox('qtype_stack/replacedollars',
get_string
(
'settingreplacedollars'
,
'qtype_stack'
),
get_string
(
'settingreplacedollars_desc'
,
'qtype_stack'
),
false
));
// Options for new inputs.
$settings
->
add
(
new
admin_setting_heading
(
'inputoptionsheading'
,
get_string
(
'settingdefaultinputoptions'
,
'qtype_stack'
),
...
...
@@ -188,7 +191,6 @@ $settings->add(new admin_setting_configselect('qtype_stack/inputshowvalidation',
get_string
(
'showvalidation_help'
,
'qtype_stack'
),
'1'
,
stack_options
::
get_showvalidation_options
()));
// Options for new questions.
$settings
->
add
(
new
admin_setting_heading
(
'questionoptionsheading'
,
get_string
(
'settingdefaultquestionoptions'
,
'qtype_stack'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment