Back to Joomla project (class list)

Class UpdateCoreCommand - list of methods

Console command for updating Joomla! core
Package: Joomla\CMS\Console
Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Console/UpdateCoreCommand.php
Project: Joomla

Method Summary

public
(\Joomla\Database\DatabaseInterface $db)

UpdateCoreCommand constructor.
Parameters
  • \Joomla\Database\DatabaseInterface $db Database Instance
Since
  • 4.0.0
Show source code of this method: __construct Source Code

private void
(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)

Configures the IO
Parameters
  • \Symfony\Component\Console\Input\InputInterface $input Console Input
  • \Symfony\Component\Console\Output\OutputInterface $output Console Output
Returns
  • void
Since
  • 4.0.0
Show source code of this method: configureIO Source Code

public int
(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)

Internal function to execute the command.
Parameters
  • \Symfony\Component\Console\Input\InputInterface $input The input to inject into the command.
  • \Symfony\Component\Console\Output\OutputInterface $output The output to inject into the command.
Returns
  • int The command exit code
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: doExecute Source Code

protected void
()

Initialise the command.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: configure Source Code

private bool
(mixed $updatemodel)

Update Core Joomla
Parameters
  • mixed $updatemodel Update Model
Returns
  • bool success
Since
  • 4.0.0
Show source code of this method: updateJoomlaCore Source Code

public void
(mixed $data)

Sets the update Information
Parameters
  • array $data Stores the update information
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setUpdateInfo Source Code

public mixed
()

Retrieves the Update model from com_joomlaupdate
Returns
  • mixed
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: getUpdateModel Source Code

public void
()

Sets the Update Model
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setUpdateModel Source Code

public array
(mixed $updateInformation)

Downloads and extracts the update Package
Parameters
  • array $updateInformation Stores the update information
Returns
  • array | boolean
Since
  • 4.0.0
Show source code of this method: processUpdatePackage Source Code

public bool
(mixed $url)

Downloads the Update file
Parameters
  • string $url URL to update file
Returns
  • bool | string
Since
  • 4.0.0
Show source code of this method: downloadFile Source Code

public array
(mixed $file)

Extracts Update file
Parameters
  • string $file Full path to file location
Returns
  • array | boolean
Since
  • 4.0.0
Show source code of this method: extractFile Source Code

public void
(mixed $file, mixed $dir)

Copy a file to a destination directory
Parameters
  • string $file Full path to file
  • string $dir Destination directory
Returns
  • void
Since
  • 4.0.0
Show source code of this method: copyFileTo Source Code

Properties Summary

protected static string
$defaultName
The default command name
Since
  • 4.0.0
private \Joomla\Application\Cli\CliInput
$cliInput
Stores the Input Object
Since
  • 4.0.0
private \Symfony\Component\Console\Style\SymfonyStyle
$ioStyle
SymfonyStyle Object
Since
  • 4.0.0
public array
$updateInfo
Update Information
Since
  • 4.0.0
public array
$updateModel
Update Model
Since
  • 4.0.0
public \Symfony\Component\Console\Helper\ProgressBar
$progressBar
Progress Bar object
Since
  • 4.0.0
private \Joomla\Database\DatabaseInterface
$db
Since
  • 4.0.0

Constants Summary

public
$UPDATE_SUCCESSFUL
Return code for successful update
Since
  • 4.0.0
public
$ERR_UPDATE_FAILED
Return code for failed update
Since
  • 4.0.0
public
$ERR_CHECKS_FAILED
Return code for failed checks
Since
  • 4.0.0

Tags Summary

Since
4.0.0