Back to Joomla project (class list)

Class ExtensionsListCommand - list of methods

Console command for listing installed extensions

Direct known subclasses

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/ExtensionsListCommand.php
Project: Joomla

Method Summary

public
(\Joomla\Database\DatabaseInterface $db)

Instantiate the command.
Parameters
  • \Joomla\Database\DatabaseInterface $db Database connector
Since
  • 4.0.0
Show source code of this method: __construct Source Code

protected 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

protected void
()

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

public mixed
()

Retrieves all extensions
Returns
  • mixed
Since
  • 4.0.0
Show source code of this method: getExtensions Source Code

public void
(mixed $extensions = null)

Retrieves the extension from the model and sets the class variable
Parameters
  • null $extensions Array of extensions
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setExtensions Source Code

private array
()

Retrieves extension list from DB
Returns
  • array
Since
  • 4.0.0
Show source code of this method: getAllExtensionsFromDB Source Code

protected array
(mixed $extensions)

Transforms extension arrays into required form
Parameters
  • array $extensions Array of extensions
Returns
  • array
Since
  • 4.0.0
Show source code of this method: getExtensionsNameAndId Source Code

private array
(mixed $type)

Filters the extension type
Parameters
  • string $type Extension type
Returns
  • array
Since
  • 4.0.0
Show source code of this method: filterExtensionsBasedOn Source Code

protected 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
Show source code of this method: doExecute Source Code

Properties Summary

protected static string
$defaultName
The default command name
Since
  • 4.0.0
protected array
$extensions
Stores the installed Extensions
Since
  • 4.0.0
protected \Symfony\Component\Console\Input\InputInterface
$cliInput
Stores the Input Object
Since
  • 4.0.0
protected \Symfony\Component\Console\Style\SymfonyStyle
$ioStyle
SymfonyStyle Object
Since
  • 4.0.0
private \Joomla\Database\DatabaseInterface
$db
Database connector
Since
  • 4.0.0

Tags Summary

Since
4.0.0