PHP Class luya\console\commands\SetupController

You can also use the parameters to run the setup command for example. setup [email protected] --password=test --firstname=John --lastname=Doe --interactive=0 This will perform the Setup task silent and does not prompt any questions.
Author: Basil Suter ([email protected])
Inheritance: extends luya\console\Command
Show file Open project: luyadev/luya

Public Properties

Property Type Description
$email The email of the user to create.
$firstname The firstname of the user to create.
$interactive Whether the setup is interactive or not.
$langName The name of the default language e.g. English
$langShortCode The short code of the language e.g. en
$lastname The lastname of the user to create.
$password The blank password of the user to create.

Public Methods

Method Description
actionIndex ( ) : boolean Setup the administration area.
actionUser ( ) : boolean Create a new user and append them to an existing group.
options ( $actionID )

Private Methods

Method Description
insert ( string $table, array $fields ) Helper to insert data in database table.

Method Details

actionIndex() public method

This action of setup will add a new user, group, languaga, permissions and default homepage and container.
public actionIndex ( ) : boolean
return boolean

actionUser() public method

Create a new user and append them to an existing group.
public actionUser ( ) : boolean
return boolean

options() public method

public options ( $actionID )

Property Details

$email public property

The email of the user to create.
public $email

$firstname public property

The firstname of the user to create.
public $firstname

$interactive public property

Whether the setup is interactive or not.
public $interactive

$langName public property

The name of the default language e.g. English
public $langName

$langShortCode public property

The short code of the language e.g. en
public $langShortCode

$lastname public property

The lastname of the user to create.
public $lastname

$password public property

The blank password of the user to create.
public $password