ExtensionDiscoverListCommand

Extends \Joomla\CMS\Console\ExtensionsListCommand

Console command for list discovered extensions

since

4.0.0

Methods

__construct

Instantiate the command.

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

4.0.0

Arguments

$db

\Joomla\Database\DatabaseInterfaceDatabase connector

configure

Initialise the command.

configure() : void
inherited
since

4.0.0

configureIO

Configures the IO

configureIO(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : void
inherited
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
inherited
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
inherited
since

4.0.0

Arguments

$type

stringExtension type

Response

array

filterExtensionsBasedOnState

Filters the extension state

filterExtensionsBasedOnState(array $extensions, string $state) : array
since

4.0.0

Arguments

$extensions

arrayThe Extensions

$state

stringThe Extension state

Response

array

getAllExtensionsFromDB

Retrieves extension list from DB

getAllExtensionsFromDB() : array
inherited
since

4.0.0

Response

array

getExtensions

Retrieves all extensions

getExtensions() : mixed
inherited
since

4.0.0

Response

mixed

getExtensionsNameAndId

Transforms extension arrays into required form

getExtensionsNameAndId(array $extensions) : array
inherited
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
inherited
since

4.0.0

Arguments

$extensions

nullArray of extensions

Properties

defaultName

The default command name

inherited static
since

4.0.0

Type(s)

string

extensions

Stores the installed Extensions

inherited
since

4.0.0

Type(s)

array

cliInput

Stores the Input Object

inherited
since

4.0.0

Type(s)

\Symfony\Component\Console\Input\InputInterface

ioStyle

SymfonyStyle Object

inherited
since

4.0.0

Type(s)

\Symfony\Component\Console\Style\SymfonyStyle

db

Database connector

inherited
since

4.0.0

Type(s)

\Joomla\Database\DatabaseInterface