API15

JInstaller/setOverwrite

From Joomla! Documentation

< API15:JInstaller
Revision as of 17:23, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Set the allow overwrite switch <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API15" 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

[Edit Descripton]

Template:Description:JInstaller/setOverwrite

Syntax[edit]

setOverwrite($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 setOverwrite($state=false)
{
        $tmp = $this->_overwrite;
        if ($state) {
                $this->_overwrite = true;
        } else {
                $this->_overwrite = false;
        }
        return $tmp;
}

[Edit See Also] Template:SeeAlso:JInstaller/setOverwrite

Examples[edit]

<CodeExamplesForm />