Class humhub\commands\SettingsController

Inheritancehumhub\commands\SettingsController » yii\console\Controller

SettingsController provides CLI access to database settings

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionDelete() Deletes a stored setting humhub\commands\SettingsController
actionList() Lists all stored settings humhub\commands\SettingsController
actionListModule() Lists stored settings by given module id humhub\commands\SettingsController
actionSet() Adds or updates a stored setting humhub\commands\SettingsController

Method Details

actionDelete() public method

Deletes a stored setting

public integer actionDelete ( $moduleId, $name )
$moduleId string
$name string
return integer

The exit code

throws Throwable
throws \yii\db\StaleObjectException
actionList() public method

Lists all stored settings

public integer actionList ( )
return integer

The exit code

throws Exception
actionListModule() public method

Lists stored settings by given module id

public integer actionListModule ( $moduleId )
$moduleId string
return integer

The exit code

throws Exception
actionSet() public method

Adds or updates a stored setting

public integer actionSet ( $moduleId, $name, $value )
$moduleId string
$name string
$value
return integer

The exit code