Back to Installer class

Method setUpgrade

public bool
setUpgrade
(mixed $state = false)
Set the upgrade switch
Parameters
  • bool $state Upgrade switch state
Returns
  • bool True if upgrade, false otherwise
Since
  • 3.1
Class: Installer
Project: Joomla

Method setUpgrade - Source code

/**
 * Set the upgrade switch
 *
 * @param   boolean  $state  Upgrade switch state
 *
 * @return  boolean  True if upgrade, false otherwise
 *
 * @since   3.1
 */
public function setUpgrade($state = false)
{
    $tmp = $this->upgrade;
    if ($state) {
        $this->upgrade = true;
    } else {
        $this->upgrade = false;
    }
    return $tmp;
}