AddUserCommand

Extends \Joomla\Console\Command\AbstractCommand

Console command for adding a user

since

4.0.0

Methods

configure

Configure the command.

configure() : void
since

4.0.0

configureIO

Configure 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\InputInterfaceThe input to inject into the command.

$output

\Symfony\Component\Console\Output\OutputInterfaceThe output to inject into the command.

doExecute

Internal function to execute the command.

doExecute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : integer
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

getGroupId

Method to get groupId by groupName

getGroupId(string $groupName) : integer
since

4.0.0

Arguments

$groupName

stringname of group

Response

integer

getStringFromOption

Method to get a value from option

getStringFromOption(string $option, string $question) : string
since

4.0.0

Arguments

$option

stringset the option name

$question

stringset the question if user enters no value to option

Response

string

getUserGroups

Method to get a value from option

getUserGroups() : array
since

4.0.0

Response

array

Properties

defaultName

The default command name

static
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

email

The email address

since

4.0.0

Type(s)

string

userGroups

The usergroups

since

4.0.0

Type(s)

array