[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Console/ -> ExtensionsListCommand.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: 250 lines (6 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

ExtensionsListCommand:: (9 methods):
  __construct()
  configureIO()
  configure()
  getExtensions()
  setExtensions()
  getAllExtensionsFromDB()
  getExtensionsNameAndId()
  filterExtensionsBasedOn()
  doExecute()


Class: ExtensionsListCommand  - X-Ref

Console command for listing installed extensions

__construct(DatabaseInterface $db)   X-Ref
Instantiate the command.

param: DatabaseInterface  $db  Database connector

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

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

configure()   X-Ref
Initialise the command.

return: void

getExtensions()   X-Ref
Retrieves all extensions

return: mixed

setExtensions($extensions = null)   X-Ref
Retrieves the extension from the model and sets the class variable

param: null  $extensions  Array of extensions
return: void

getAllExtensionsFromDB()   X-Ref
Retrieves extension list from DB

return: array

getExtensionsNameAndId($extensions)   X-Ref
Transforms extension arrays into required form

param: array  $extensions  Array of extensions
return: array

filterExtensionsBasedOn($type)   X-Ref
Filters the extension type

param: string  $type  Extension type
return: array

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



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