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
d3030e95
Commit
d3030e95
authored
5 years ago
by
Tim Hunt
Browse files
Options
Downloads
Patches
Plain Diff
Improve some comments
parent
8aca0d50
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
question.php
+2
-2
2 additions, 2 deletions
question.php
stack/cas/cassession2.class.php
+10
-0
10 additions, 0 deletions
stack/cas/cassession2.class.php
with
12 additions
and
2 deletions
question.php
+
2
−
2
View file @
d3030e95
...
...
@@ -113,7 +113,7 @@ class qtype_stack_question extends question_graded_automatically_with_countback
public
$seed
=
null
;
/**
* @var
array
stack_cas_session STACK specific: session of variables.
* @var stack_cas_session
2
STACK specific: session of variables.
*/
protected
$session
;
...
...
@@ -1015,7 +1015,7 @@ class qtype_stack_question extends question_graded_automatically_with_countback
* @param stack_cas_session $session the CAS session to add the question variables to.
*/
public
function
add_question_vars_to_session
(
stack_cas_session2
$session
)
{
// Question vars will always get added to the begining of whatever session you give.
// Question vars will always get added to the begin
n
ing of whatever session you give.
$this
->
session
->
prepend_to_session
(
$session
);
}
...
...
This diff is collapsed.
Click to expand it.
stack/cas/cassession2.class.php
+
10
−
0
View file @
d3030e95
...
...
@@ -101,10 +101,20 @@ class stack_cas_session2 {
$this
->
instantiated
=
false
;
}
/**
* Add all the statements from this session at the start of the target session.
*
* @param stack_cas_session2 $target
*/
public
function
prepend_to_session
(
stack_cas_session2
$target
)
{
$target
->
statements
=
array_merge
(
$this
->
statements
,
$target
->
statements
);
}
/**
* Add all the statements from this session at the end of the target session.
*
* @param stack_cas_session2 $target
*/
public
function
append_to_session
(
stack_cas_session2
$target
)
{
$target
->
statements
=
array_merge
(
$target
->
statements
,
$this
->
statements
);
}
...
...
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