Пример #1
0
 /**
  * init
  *
  * @param xxx $hotpot
  */
 function init($hotpot)
 {
     parent::init($hotpot);
     // prepend templates for this output format
     array_unshift($this->templatesfolders, 'mod/hotpot/attempt/hp/6/jmatch/xml/sort/templates');
     // replace standard jcloze.js with sort.js
     //$this->javascripts = preg_grep('/jmatch.js/', $this->javascripts, PREG_GREP_INVERT);
     //array_push($this->javascripts, 'mod/hotpot/attempt/hp/6/jmatch/sort.js');
 }
Пример #2
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . 'ShowSolution,CheckPair,WriteFeedback';
     return $names;
 }
Пример #3
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . 'DeleteItem,ShowItem';
     return $names;
 }