public function init($initMessage = null, $type = 'percentage', $total = null)
	{
		// Force interactivity of this class (this doesn't affect our primary output class)
		$this->makeInteractive();

		if (isset($initMessage))
		{
			// Add the intital message
			$this->addString($initMessage);

			// Track some string lengths
			$this->initMessageLength = strlen($initMessage);
		}

		switch ($type)
		{
			case 'ratio':
				$this->setProgress(0, $total);
				break;
			case 'percentage':
			default:
				// Set current progress to 0
				$this->setProgress('0');
				break;
		}
	}
public function init($initMessage = null, $type = 'percentage', $total = null)
	{
		// Force interactivity of this class (this doesn't affect our primary output class)
		$this->makeInteractive();

		if (isset($initMessage))
		{
			// Add the intital message
			$this->addString($initMessage);

			// Track some string lengths
			$this->initMessageLength = strlen($initMessage);
		}

		switch ($type)
		{
			case 'ratio':
				$this->setProgress(0, $total);
				break;
			case 'percentage':
			default:
				// Set current progress to 0
				$this->setProgress('0');
				break;
		}
	}
public function init ( $ initMessage = null , $ type = 'percentage' , $ total = null ) { // Force interactivity of this class (this doesn't affect our primary output class) $ this -> makeInteractive ( ) ; if ( isset ( $ initMessage ) ) { // Add the intital message $ this -> addString ( $ initMessage ) ; // Track some string lengths $ this -> initMessageLength = strlen ( $ initMessage ) ; } switch ( $ type ) { case 'ratio' : $ this -> setProgress ( 0 , $ total ) ; break ; case 'percentage' : default : // Set current progress to 0 $ this -> setProgress ( '0' ) ; break ; } }
Initialize progress counter

@param   string  $initMessage  Initial message
@param   string  $type         Progress type
@param   int     $total        Total number of progress points
@return  void
Initialize progress counter