JInstaller/setOverwrite
From Joomla! Documentation
< 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[edit]
Set the allow overwrite switch
<! removed transcluded page call, red link never existed >
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]
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[edit]
Code Examples[edit]