original_string: public function check_for_updates_button(\core\update\checker $checker, $reloadurl) {
  
          $output = '';
  
          if ($checker->enabled()) {
              $output .= $this->container_start('checkforupdates');
              $output .= $this->single_button(
                  new moodle_url($reloadurl, array('fetchupdates' => 1)),
                  get_string('checkforupdates', 'core_plugin')
              );
              if ($timefetched = $checker->get_last_timefetched()) {
                  $timefetched = userdate($timefetched, get_string('strftimedatetime', 'core_langconfig'));
                  $output .= $this->container(get_string('checkforupdateslast', 'core_plugin', $timefetched), 'lasttimefetched');
              }
              $output .= $this->container_end();
          }
  
          return $output;
      }
code: public function check_for_updates_button(\core\update\checker $checker, $reloadurl) {
  
          $output = '';
  
          if ($checker->enabled()) {
              $output .= $this->container_start('checkforupdates');
              $output .= $this->single_button(
                  new moodle_url($reloadurl, array('fetchupdates' => 1)),
                  get_string('checkforupdates', 'core_plugin')
              );
              if ($timefetched = $checker->get_last_timefetched()) {
                  $timefetched = userdate($timefetched, get_string('strftimedatetime', 'core_langconfig'));
                  $output .= $this->container(get_string('checkforupdateslast', 'core_plugin', $timefetched), 'lasttimefetched');
              }
              $output .= $this->container_end();
          }
  
          return $output;
      }
code_tokens: public function check_for_updates_button ( \ core \ update \ checker $ checker , $ reloadurl ) { $ output = '' ; if ( $ checker -> enabled ( ) ) { $ output .= $ this -> container_start ( 'checkforupdates' ) ; $ output .= $ this -> single_button ( new moodle_url ( $ reloadurl , array ( 'fetchupdates' => 1 ) ) , get_string ( 'checkforupdates' , 'core_plugin' ) ) ; if ( $ timefetched = $ checker -> get_last_timefetched ( ) ) { $ timefetched = userdate ( $ timefetched , get_string ( 'strftimedatetime' , 'core_langconfig' ) ) ; $ output .= $ this -> container ( get_string ( 'checkforupdateslast' , 'core_plugin' , $ timefetched ) , 'lasttimefetched' ) ; } $ output .= $ this -> container_end ( ) ; } return $ output ; }
docstring: Renders a button to fetch for available updates.
  
  @param \core\update\checker $checker
  @param moodle_url $reloadurl
  @return string HTML
docstring_tokens: Renders a button to fetch for available updates .