ExtensionsListCommand

Extends AbstractCommand

Console command for listing installed extensions

since

4.0.0

package

Joomla CMS

Methods

__construct

Instantiate the command.

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

4.0.0

Arguments

db

DatabaseInterfaceDatabase connector

Response

mixed

configure

Initialise the command.

configure() : 
since

4.0.0

Response

void

configureIO

Configures the IO

configureIO(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) : 
since

4.0.0

Arguments

input

InputInterfaceConsole Input

output

OutputInterfaceConsole Output

Response

void

doExecute

Internal function to execute the command.

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

4.0.0

Arguments

input

InputInterfaceThe input to inject into the command.

output

OutputInterfaceThe output to inject into the command.

Response

intThe command exit code

filterExtensionsBasedOn

Filters the extension type

filterExtensionsBasedOn( type) : mixed||string|int
since

4.0.0

Arguments

type

stringExtension type

Response

array<string|int, mixed>

getAllExtensionsFromDB

Retrieves extension list from DB

getAllExtensionsFromDB() : mixed||string|int
since

4.0.0

Response

array<string|int, mixed>

getExtensions

Retrieves all extensions

getExtensions() : 
since

4.0.0

Response

mixed

getExtensionsNameAndId

Transforms extension arrays into required form

getExtensionsNameAndId(mixed||string|int extensions) : mixed||string|int
since

4.0.0

Arguments

extensions

array<string|int, mixed>Array of extensions

Response

array<string|int, mixed>

setExtensions

Retrieves the extension from the model and sets the class variable

setExtensions( extensions = null) : 
since

4.0.0

Arguments

extensions

nullArray of extensions

Response

void

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<string|int, mixed>

cliInput

Stores the Input Object

since

4.0.0

Type(s)

InputInterface

ioStyle

SymfonyStyle Object

since

4.0.0

Type(s)

SymfonyStyle