API16

JInstaller/setUpgrade

From Joomla! Documentation

< API16:JInstaller
Revision as of 22:00, 13 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Set the allow overwrite switch

[<! removed edit link to red link >]

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

Syntax[edit]

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

Returns[edit]

boolean Previous value

Defined in[edit]

libraries/joomla/installer/installer.php

Importing[edit]

jimport( 'joomla.installer.installer' );

Source Body[edit]

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

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />