API16

API16:JInstaller/setUpgrade

From Joomla! Documentation

Description

Set the allow overwrite switch


<! removed transcluded page call, red link never existed >

Syntax

setUpgrade($state=false)
Parameter Name Default Value Description
$state false $state Overwrite switch state

Returns

boolean Previous value

Defined in

libraries/joomla/installer/installer.php

Importing

jimport( 'joomla.installer.installer' );

Source Body

function setUpgrade($state=false)
{
        $tmp = $this->_upgrade;
        if ($state) {
                $this->_upgrade = true;
        }
        else {
                $this->_upgrade = false;
        }
        return $tmp;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples