Back to InstallerAdapter class

Method update

public bool|int
update
()
Generic update method for extensions
Returns
  • bool|int The extension ID on success, boolean false on failure
Since
  • 3.4

Method update - Source code

/**
 * Generic update method for extensions
 *
 * @return  boolean|integer  The extension ID on success, boolean false on failure
 *
 * @since   3.4
 */
public function update()
{
    // Set the overwrite setting
    $this->parent->setOverwrite(true);
    $this->parent->setUpgrade(true);
    // And make sure the route is set correctly
    $this->setRoute('update');
    // Now jump into the install method to run the update
    return $this->install();
}