public function setProgress($val, $tot = null)
	{
		if ($this->contentLength > 0)
		{
			// Back up current length of content
			$this->backspace($this->contentLength);
		}

		if (!is_null($tot))
		{
			$content = "({$val}/{$tot})";
		}
		else
		{
			// Get new content
			$content = "{$val}%";
		}

		// Save length of content for next call
		$this->contentLength = strlen($content);

		// Add the string
		$this->addString($content);
	}
public function setProgress($val, $tot = null)
	{
		if ($this->contentLength > 0)
		{
			// Back up current length of content
			$this->backspace($this->contentLength);
		}

		if (!is_null($tot))
		{
			$content = "({$val}/{$tot})";
		}
		else
		{
			// Get new content
			$content = "{$val}%";
		}

		// Save length of content for next call
		$this->contentLength = strlen($content);

		// Add the string
		$this->addString($content);
	}
public function setProgress ( $ val , $ tot = null ) { if ( $ this -> contentLength > 0 ) { // Back up current length of content $ this -> backspace ( $ this -> contentLength ) ; } if ( ! is_null ( $ tot ) ) { $ content = "({$val}/{$tot})" ; } else { // Get new content $ content = "{$val}%" ; } // Save length of content for next call $ this -> contentLength = strlen ( $ content ) ; // Add the string $ this -> addString ( $ content ) ; }
Set the current progress val

@param   int  $val  Progress value
@param   int  $tot  Total value
@return  void
Set the current progress val