original_string: public function get_status_display($statuscode, $backupid) {
          if ($statuscode == backup::STATUS_AWAITING || $statuscode == backup::STATUS_EXECUTING) {  // Inprogress.
              $progresssetup = array(
                      'backupid' => $backupid,
                      'width' => '100'
              );
              $status = $this->render_from_template('core/async_backup_progress', $progresssetup);
          } else if ($statuscode == backup::STATUS_FINISHED_ERR) { // Error.
              $icon = $this->output->render(new \pix_icon('i/delete', get_string('failed', 'backup')));
              $status = \html_writer::span($icon, 'action-icon');
          } else if ($statuscode == backup::STATUS_FINISHED_OK) { // Complete.
              $icon = $this->output->render(new \pix_icon('i/checked', get_string('successful', 'backup')));
              $status = \html_writer::span($icon, 'action-icon');
          }
  
          return $status;
      }
code: public function get_status_display($statuscode, $backupid) {
          if ($statuscode == backup::STATUS_AWAITING || $statuscode == backup::STATUS_EXECUTING) {  // Inprogress.
              $progresssetup = array(
                      'backupid' => $backupid,
                      'width' => '100'
              );
              $status = $this->render_from_template('core/async_backup_progress', $progresssetup);
          } else if ($statuscode == backup::STATUS_FINISHED_ERR) { // Error.
              $icon = $this->output->render(new \pix_icon('i/delete', get_string('failed', 'backup')));
              $status = \html_writer::span($icon, 'action-icon');
          } else if ($statuscode == backup::STATUS_FINISHED_OK) { // Complete.
              $icon = $this->output->render(new \pix_icon('i/checked', get_string('successful', 'backup')));
              $status = \html_writer::span($icon, 'action-icon');
          }
  
          return $status;
      }
code_tokens: public function get_status_display ( $ statuscode , $ backupid ) { if ( $ statuscode == backup :: STATUS_AWAITING || $ statuscode == backup :: STATUS_EXECUTING ) { // Inprogress. $ progresssetup = array ( 'backupid' => $ backupid , 'width' => '100' ) ; $ status = $ this -> render_from_template ( 'core/async_backup_progress' , $ progresssetup ) ; } else if ( $ statuscode == backup :: STATUS_FINISHED_ERR ) { // Error. $ icon = $ this -> output -> render ( new \ pix_icon ( 'i/delete' , get_string ( 'failed' , 'backup' ) ) ) ; $ status = \ html_writer :: span ( $ icon , 'action-icon' ) ; } else if ( $ statuscode == backup :: STATUS_FINISHED_OK ) { // Complete. $ icon = $ this -> output -> render ( new \ pix_icon ( 'i/checked' , get_string ( 'successful' , 'backup' ) ) ) ; $ status = \ html_writer :: span ( $ icon , 'action-icon' ) ; } return $ status ; }
docstring: Generate the status indicator markup for display in the
  backup restore file area UI.
  
  @param int $statuscode The status code of the backup.
  @param string $backupid The backup record id.
  @return string|boolean $status The status indicator for the operation.
docstring_tokens: Generate the status indicator markup for display in the backup restore file area UI .