original_string: public static function get_progress($backupid) {
          global $DB;
  
          $progress = array();
          $backuprecord = $DB->get_record(
              'backup_controllers',
              array('backupid' => $backupid),
              'status, progress, operation',
              MUST_EXIST);
  
          $status = $backuprecord->status;
          $progress = $backuprecord->progress;
          $operation = $backuprecord->operation;
  
          $progress = array('status' => $status, 'progress' => $progress, 'backupid' => $backupid, 'operation' => $operation);
  
          return $progress;
      }
code: public static function get_progress($backupid) {
          global $DB;
  
          $progress = array();
          $backuprecord = $DB->get_record(
              'backup_controllers',
              array('backupid' => $backupid),
              'status, progress, operation',
              MUST_EXIST);
  
          $status = $backuprecord->status;
          $progress = $backuprecord->progress;
          $operation = $backuprecord->operation;
  
          $progress = array('status' => $status, 'progress' => $progress, 'backupid' => $backupid, 'operation' => $operation);
  
          return $progress;
      }
code_tokens: public static function get_progress ( $ backupid ) { global $ DB ; $ progress = array ( ) ; $ backuprecord = $ DB -> get_record ( 'backup_controllers' , array ( 'backupid' => $ backupid ) , 'status, progress, operation' , MUST_EXIST ) ; $ status = $ backuprecord -> status ; $ progress = $ backuprecord -> progress ; $ operation = $ backuprecord -> operation ; $ progress = array ( 'status' => $ status , 'progress' => $ progress , 'backupid' => $ backupid , 'operation' => $ operation ) ; return $ progress ; }
docstring: Get the progress details of a backup operation.
  Get backup records directly from database, if the backup has successfully completed
  there will be no controller object to load.
  
  @param string $backupid The backup id to query.
  @return array $progress The backup progress details.
docstring_tokens: Get the progress details of a backup operation . Get backup records directly from database if the backup has successfully completed there will be no controller object to load .