ExtensionsListCommand

Extends \Joomla\Console\Command\AbstractCommand

Console command for listing installed extensions

since

4.0.0

Methods

__construct

Instantiate the command.

__construct(\Joomla\Database\DatabaseInterface $db) 
since

4.0.0

Arguments

$db

\Joomla\Database\DatabaseInterfaceDatabase connector

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\InputInterfaceConsole Input

$output

\Symfony\Component\Console\Output\OutputInterfaceConsole Output

doExecute

Internal function to execute the command.

doExecute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : integer
since

4.0.0

Arguments

$input

\Symfony\Component\Console\Input\InputInterfaceThe input to inject into the command.

$output

\Symfony\Component\Console\Output\OutputInterfaceThe output to inject into the command.

Response

integerThe command exit code

filterExtensionsBasedOn

Filters the extension type

filterExtensionsBasedOn(string $type) : array
since

4.0.0

Arguments

$type

stringExtension type

Response

array

getAllExtensionsFromDB

Retrieves extension list from DB

getAllExtensionsFromDB() : array
since

4.0.0

Response

array

getExtensions

Retrieves all extensions

getExtensions() : mixed
since

4.0.0

Response

mixed

getExtensionsNameAndId

Transforms extension arrays into required form

getExtensionsNameAndId(array $extensions) : array
since

4.0.0

Arguments

$extensions

arrayArray of extensions

Response

array

setExtensions

Retrieves the extension from the model and sets the class variable

setExtensions(null $extensions = null) : void
since

4.0.0

Arguments

$extensions

nullArray of extensions

Properties

defaultName

The default command name

static
since

4.0.0

Type(s)

string

extensions

Stores the installed Extensions

since

4.0.0

Type(s)

array

cliInput

Stores the Input Object

since

4.0.0

Type(s)

\Symfony\Component\Console\Input\InputInterface

ioStyle

SymfonyStyle Object

since

4.0.0

Type(s)

\Symfony\Component\Console\Style\SymfonyStyle

db

Database connector

since

4.0.0

Type(s)

\Joomla\Database\DatabaseInterface