Actions

API16

JInstaller/setOverwrite

< API16:JInstaller

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

Set the allow overwrite switch


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

Syntax

setOverwrite($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

public function setOverwrite($state=false)
{
        $tmp = $this->_overwrite;
        if ($state) {
                $this->_overwrite = true;
        }
        else {
                $this->_overwrite = false;
        }
        return $tmp;
}


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

Examples

Code Examples


Advertisement