ExtensionDiscoverListCommand

Extends ExtensionsListCommand

Console command for list discovered extensions

since

4.0.0

package

Joomla CMS

Methods

__construct

Instantiate the command.

__construct(\Joomla\Database\DatabaseInterface db) : 
inherited
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) : 
inherited
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
inherited
since

4.0.0

Arguments

type

stringExtension type

Response

array<string|int, mixed>

filterExtensionsBasedOnState

Filters the extension state

filterExtensionsBasedOnState(mixed||string|int extensions,  state) : mixed||string|int
since

4.0.0

Arguments

extensions

array<string|int, mixed>The Extensions

state

stringThe Extension state

Response

array<string|int, mixed>

getAllExtensionsFromDB

Retrieves extension list from DB

getAllExtensionsFromDB() : mixed||string|int
inherited
since

4.0.0

Response

array<string|int, mixed>

getExtensions

Retrieves all extensions

getExtensions() : 
inherited
since

4.0.0

Response

mixed

getExtensionsNameAndId

Transforms extension arrays into required form

getExtensionsNameAndId(mixed||string|int extensions) : mixed||string|int
inherited
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) : 
inherited
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

inherited
since

4.0.0

Type(s)

array<string|int, mixed>

cliInput

Stores the Input Object

inherited
since

4.0.0

Type(s)

InputInterface

ioStyle

SymfonyStyle Object

inherited
since

4.0.0

Type(s)

SymfonyStyle