[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Console/ -> UpdateCoreCommand.php (summary)

Joomla! Content Management System

Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 382 lines (9 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

UpdateCoreCommand:: (12 methods):
  __construct()
  configureIO()
  doExecute()
  configure()
  updateJoomlaCore()
  setUpdateInfo()
  getUpdateModel()
  setUpdateModel()
  processUpdatePackage()
  downloadFile()
  extractFile()
  copyFileTo()


Class: UpdateCoreCommand  - X-Ref

Console command for updating Joomla! core

__construct(DatabaseInterface $db)   X-Ref
UpdateCoreCommand constructor.

param: DatabaseInterface  $db  Database Instance

configureIO(InputInterface $input, OutputInterface $output)   X-Ref
Configures the IO

param: InputInterface   $input   Console Input
param: OutputInterface  $output  Console Output
return: void

doExecute(InputInterface $input, OutputInterface $output)   X-Ref
Internal function to execute the command.

param: InputInterface   $input   The input to inject into the command.
param: OutputInterface  $output  The output to inject into the command.
return: integer  The command exit code

configure()   X-Ref
Initialise the command.

return: void

updateJoomlaCore($updatemodel)   X-Ref
Update Core Joomla

param: mixed  $updatemodel  Update Model
return: boolean  success

setUpdateInfo($data)   X-Ref
Sets the update Information

param: array  $data  Stores the update information
return: void

getUpdateModel()   X-Ref
Retrieves the Update model from com_joomlaupdate

return: mixed

setUpdateModel()   X-Ref
Sets the Update Model

return: void

processUpdatePackage($updateInformation)   X-Ref
Downloads and extracts the update Package

param: array  $updateInformation  Stores the update information
return: array | boolean

downloadFile($url)   X-Ref
Downloads the Update file

param: string  $url  URL to update file
return: boolean | string

extractFile($file)   X-Ref
Extracts Update file

param: string  $file  Full path to file location
return: array | boolean

copyFileTo($file, $dir)   X-Ref
Copy a file to a destination directory

param: string  $file  Full path to file
param: string  $dir   Destination directory
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer