ExtensionDiscoverListCommand
Extends ExtensionsListCommandConsole command for list discovered extensions
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Instantiate the command.
__construct(\Joomla\Database\DatabaseInterface db) : mixed
since |
4.0.0 |
---|
Arguments
- db
\Joomla\Database\DatabaseInterface
Database connector
Response
mixed
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\InputInterface
Console Input- output
\Symfony\Component\Console\Output\OutputInterface
Console Output
doExecute
Internal function to execute the command.
doExecute(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) : int
since |
4.0.0 |
---|
Arguments
- input
\Symfony\Component\Console\Input\InputInterface
The input to inject into the command.- output
\Symfony\Component\Console\Output\OutputInterface
The output to inject into the command.
Response
int
The command exit code
filterExtensionsBasedOn
Filters the extension type
filterExtensionsBasedOn(string type) : array
since |
4.0.0 |
---|
Arguments
- type
string
Extension type
Response
array
filterExtensionsBasedOnState
Filters the extension state
filterExtensionsBasedOnState(array extensions, string state) : array
since |
4.0.0 |
---|
Arguments
- extensions
array
The Extensions- state
string
The Extension state
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
array
Array 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
null
Array of extensions
Properties
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