public function update($cur, $total, $msg) {
        $percent = ($cur / $total) * 100;
        $this->update_full($percent, $msg);
    }
public function update($cur, $total, $msg) {
        $percent = ($cur / $total) * 100;
        $this->update_full($percent, $msg);
    }
public function update ( $ cur , $ total , $ msg ) { $ percent = ( $ cur / $ total ) * 100 ; $ this -> update_full ( $ percent , $ msg ) ; }
Update progress bar according the number of tasks.

@param int $cur Current task number.
@param int $total Total task number.
@param string $msg The message needed to be shown.
Update progress bar according the number of tasks .