public function updateTaskProgress($id, &$step, $maxStep = 0) {
		if (empty($id) || !$this->exists($id) ||
			($maxStep < 1) || ($maxStep < $step)) {
			return false;
		}

		$step++;
		$progress = $step / $maxStep;

		return $this->updateProgress($id, $progress);
	}
public function updateTaskProgress($id, &$step, $maxStep = 0) {
		if (empty($id) || !$this->exists($id) ||
			($maxStep < 1) || ($maxStep < $step)) {
			return false;
		}

		$step++;
		$progress = $step / $maxStep;

		return $this->updateProgress($id, $progress);
	}
public function updateTaskProgress ( $ id , & $ step , $ maxStep = 0 ) { if ( empty ( $ id ) || ! $ this -> exists ( $ id ) || ( $ maxStep < 1 ) || ( $ maxStep < $ step ) ) { return false ; } $ step ++ ; $ progress = $ step / $ maxStep ; return $ this -> updateProgress ( $ id , $ progress ) ; }
Update progress of job

@param int $id ID of job
@param int &$step Current step of job
@param int $maxStep Maximum steps of job
@return bool Success
Update progress of job