UpdateCoreCommand
Extends \Joomla\Console\Command\AbstractCommandConsole command for updating Joomla! core
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
UpdateCoreCommand constructor.
__construct(\Joomla\Database\DatabaseInterface db) : mixed
since |
4.0.0 |
---|
Arguments
- db
\Joomla\Database\DatabaseInterface
Database Instance
Response
mixed
configure
Initialise the command.
configure() : void
since |
4.0.0 |
---|
configureIO
Configures the IO
configureIO(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) : void
since |
4.0.0 |
---|
Arguments
- input
\Symfony\Component\Console\Input\InputInterface
Console Input- output
\Symfony\Component\Console\Output\OutputInterface
Console Output
copyFileTo
Copy a file to a destination directory
copyFileTo(string file, string dir) : void
since |
4.0.0 |
---|
Arguments
- file
string
Full path to file- dir
string
Destination directory
doExecute
Internal function to execute the command.
doExecute(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) : int
since |
4.0.0 |
---|---|
throws |
|
Arguments
- input
\Symfony\Component\Console\Input\InputInterface
The input to inject into the command.- output
\Symfony\Component\Console\Output\OutputInterface
The output to inject into the command.
Response
int
The command exit code
downloadFile
Downloads the Update file
downloadFile(string url) : bool
since |
4.0.0 |
---|
Arguments
- url
string
URL to update file
Response
bool
| string
extractFile
Extracts Update file
extractFile(string file) : array
since |
4.0.0 |
---|
Arguments
- file
string
Full path to file location
Response
array
| boolean
getUpdateModel
Retrieves the Update model from com_joomlaupdate
getUpdateModel() : mixed
since |
4.0.0 |
---|---|
throws |
|
Response
mixed
processUpdatePackage
Downloads and extracts the update Package
processUpdatePackage(array updateInformation) : array
since |
4.0.0 |
---|
Arguments
- updateInformation
array
Stores the update information
Response
array
| boolean
setUpdateInfo
Sets the update Information
setUpdateInfo(array data) : void
since |
4.0.0 |
---|
Arguments
- data
array
Stores the update information
setUpdateModel
Sets the Update Model
setUpdateModel() : void
since |
4.0.0 |
---|
updateJoomlaCore
Update Core Joomla
updateJoomlaCore(mixed updatemodel) : bool
since |
4.0.0 |
---|
Arguments
- updatemodel
mixed
Update Model
Response
bool
success
Constants
UPDATE_SUCCESSFUL
Return code for successful update
Value | 0 |
---|---|
since |
4.0.0 |
ERR_UPDATE_FAILED
Return code for failed update
Value | 2 |
---|---|
since |
4.0.0 |
ERR_CHECKS_FAILED
Return code for failed checks
Value | 1 |
---|---|
since |
4.0.0 |
Properties
cliInput
Stores the Input Object
since |
4.0.0 |
---|
Type(s)
\Joomla\Application\Cli\CliInput
ioStyle
SymfonyStyle Object
since |
4.0.0 |
---|
Type(s)
\Symfony\Component\Console\Style\SymfonyStyle
progressBar
Progress Bar object
since |
4.0.0 |
---|
Type(s)
\Symfony\Component\Console\Helper\ProgressBar
db
since |
4.0.0 |
---|
Type(s)
\Joomla\Database\DatabaseInterface