original_string: public function download() {
          $filename = 'logs_' . userdate(time(), get_string('backupnameformat', 'langconfig'), 99, false);
          if ($this->course->id !== SITEID) {
              $courseshortname = format_string($this->course->shortname, true,
                      array('context' => context_course::instance($this->course->id)));
              $filename = clean_filename('logs_' . $courseshortname . '_' . userdate(time(),
                      get_string('backupnameformat', 'langconfig'), 99, false));
          }
          $this->tablelog->is_downloading($this->logformat, $filename);
          $this->tablelog->out($this->perpage, false);
      }
code: public function download() {
          $filename = 'logs_' . userdate(time(), get_string('backupnameformat', 'langconfig'), 99, false);
          if ($this->course->id !== SITEID) {
              $courseshortname = format_string($this->course->shortname, true,
                      array('context' => context_course::instance($this->course->id)));
              $filename = clean_filename('logs_' . $courseshortname . '_' . userdate(time(),
                      get_string('backupnameformat', 'langconfig'), 99, false));
          }
          $this->tablelog->is_downloading($this->logformat, $filename);
          $this->tablelog->out($this->perpage, false);
      }
code_tokens: public function download ( ) { $ filename = 'logs_' . userdate ( time ( ) , get_string ( 'backupnameformat' , 'langconfig' ) , 99 , false ) ; if ( $ this -> course -> id !== SITEID ) { $ courseshortname = format_string ( $ this -> course -> shortname , true , array ( 'context' => context_course :: instance ( $ this -> course -> id ) ) ) ; $ filename = clean_filename ( 'logs_' . $ courseshortname . '_' . userdate ( time ( ) , get_string ( 'backupnameformat' , 'langconfig' ) , 99 , false ) ) ; } $ this -> tablelog -> is_downloading ( $ this -> logformat , $ filename ) ; $ this -> tablelog -> out ( $ this -> perpage , false ) ; }
docstring: Download logs in specified format.
docstring_tokens: Download logs in specified format .