public function sendingbackupinfo($backupfile) {
        $sizeinfo = new stdClass();
        $sizeinfo->total = number_format($backupfile->get_filesize() / 1000000, 2);
        $html = html_writer::tag('div', get_string('sendingsize', 'hub', $sizeinfo),
            array('class' => 'courseuploadtextinfo'));
        return $html;
    }
public function sendingbackupinfo($backupfile) {
        $sizeinfo = new stdClass();
        $sizeinfo->total = number_format($backupfile->get_filesize() / 1000000, 2);
        $html = html_writer::tag('div', get_string('sendingsize', 'hub', $sizeinfo),
            array('class' => 'courseuploadtextinfo'));
        return $html;
    }
public function sendingbackupinfo ( $ backupfile ) { $ sizeinfo = new stdClass ( ) ; $ sizeinfo -> total = number_format ( $ backupfile -> get_filesize ( ) / 1000000 , 2 ) ; $ html = html_writer :: tag ( 'div' , get_string ( 'sendingsize' , 'hub' , $ sizeinfo ) , array ( 'class' => 'courseuploadtextinfo' ) ) ; return $ html ; }
Display waiting information about backup size during uploading backup process
@param object $backupfile the backup stored_file
@return $html string
Display waiting information about backup size during uploading backup process