/** * Add all the question variables to a give CAS session. This can be used to * initialise that session, so expressions can be evaluated in the context of * the question variables. * @param stack_cas_session $session the CAS session to add the question variables to. */ public function add_question_vars_to_session(stack_cas_session $session) { $session->merge_session($this->session); }