AddUserCommand
Extends AbstractCommandConsole command for adding a user
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Command constructor.
__construct(\Joomla\Database\DatabaseInterface db) :
since |
4.2.0 |
---|
Arguments
- db
DatabaseInterface
The database
Response
mixed
configure
Configure the command.
configure() :
since |
4.0.0 |
---|
Response
void
configureIO
Configure the IO.
configureIO(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) :
since |
4.0.0 |
---|
Arguments
- input
InputInterface
The input to inject into the command.- output
OutputInterface
The output to inject into the command.
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
InputInterface
The input to inject into the command.- output
OutputInterface
The output to inject into the command.
Response
int
The command exit code
getGroupId
Method to get groupId by groupName
getGroupId( groupName) :
since |
4.0.0 |
---|
Arguments
- groupName
string
name of group
Response
int
getStringFromOption
Method to get a value from option
getStringFromOption( option, question) :
since |
4.0.0 |
---|
Arguments
- option
string
set the option name- question
string
set the question if user enters no value to option
Response
string
getUserGroups
Method to get a value from option
getUserGroups() : mixed||string|int
since |
4.0.0 |
---|
Response
array<string|int, mixed>
Properties
defaultName
The default command name
since |
4.0.0 |
---|
Type(s)
string
ioStyle
SymfonyStyle Object
since |
4.0.0 |
---|
Type(s)
object
cliInput
Stores the Input Object
since |
4.0.0 |
---|
Type(s)
object
user
The username
since |
4.0.0 |
---|
Type(s)
string
password
The password
since |
4.0.0 |
---|
Type(s)
string
name
The name
since |
4.0.0 |
---|
Type(s)
string
The email address
since |
4.0.0 |
---|
Type(s)
string
userGroups
The usergroups
since |
4.0.0 |
---|
Type(s)
array<string|int, mixed>