API16

API16:JInstaller/setOverwrite

From Joomla! Documentation

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