Ejemplo n.º 1
0
 /**
  * Returns options for the javascript object (Currently only language strings).
  *
  * @return array An array of options.
  */
 public function get_js_opts()
 {
     $opts = parent::get_js_opts();
     $opts['lang_any'] = get_string('any', 'moodle');
     $opts['lang_days'] = array(0 => get_string('sun', 'calendar'), 1 => get_string('mon', 'calendar'), 2 => get_string('tue', 'calendar'), 3 => get_string('wed', 'calendar'), 4 => get_string('thu', 'calendar'), 5 => get_string('fri', 'calendar'), 6 => get_string('sat', 'calendar'));
     foreach ($opts['lang_days'] as $i => $str) {
         $opts['lang_days'][$i] = $opts['lang_days'][$i][0];
     }
     $opts['lang_months'] = array(0 => get_string('month_jan', 'local_elisprogram'), 1 => get_string('month_feb', 'local_elisprogram'), 2 => get_string('month_mar', 'local_elisprogram'), 3 => get_string('month_apr', 'local_elisprogram'), 4 => get_string('month_may', 'local_elisprogram'), 5 => get_string('month_jun', 'local_elisprogram'), 6 => get_string('month_jul', 'local_elisprogram'), 7 => get_string('month_aug', 'local_elisprogram'), 8 => get_string('month_sep', 'local_elisprogram'), 9 => get_string('month_oct', 'local_elisprogram'), 10 => get_string('month_nov', 'local_elisprogram'), 11 => get_string('month_dec', 'local_elisprogram'));
     $opts['lang_clear'] = get_string('clear', 'local_elisprogram');
     return $opts;
 }
Ejemplo n.º 2
0
 /**
  * Returns options for the javascript object.
  *
  * @return array An array of options.
  */
 public function get_js_opts()
 {
     $opts = parent::get_js_opts();
     $opts['lang_any'] = get_string('any', 'moodle');
     return $opts;
 }