src/Installer/Installer.php
public function setUpgrade($state = false)
	{
		$tmp = $this->upgrade;

		if ($state)
		{
			$this->upgrade = true;
		}
		else
		{
			$this->upgrade = false;
		}

		return $tmp;
	}
public function setUpgrade($state = false)
	{
		$tmp = $this->upgrade;

		if ($state)
		{
			$this->upgrade = true;
		}
		else
		{
			$this->upgrade = false;
		}

		return $tmp;
	}
public function setUpgrade ( $ state = false ) { $ tmp = $ this -> upgrade ; if ( $ state ) { $ this -> upgrade = true ; } else { $ this -> upgrade = false ; } return $ tmp ; }
Set the upgrade switch

@param   boolean  $state  Upgrade switch state

@return  boolean  True if upgrade, false otherwise

@since   3.1
Set the upgrade switch