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;
    }
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;
    }
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 ; }
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.
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 .