API16

API16:JInstallerPlugin/update

From Joomla! Documentation

Revision as of 22:53, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Custom update method <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> <...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Custom update method

[Edit Descripton]

Template:Description:JInstallerPlugin/update

Syntax

update()


Returns

boolean True on success

Defined in

libraries/joomla/installer/adapters/plugin.php

Importing

jimport( 'joomla.installer.adapters.plugin' );

Source Body

function update()
{
        // set the overwrite setting
        $this->parent->setOverwrite(true);
        $this->parent->setUpgrade(true);
        // set the route for the install
        $this->route = 'Update';
        // go to install which handles updates properly
        return $this->install();
}

[Edit See Also] Template:SeeAlso:JInstallerPlugin/update

Examples

<CodeExamplesForm />