Class humhub\modules\installer\controllers\ConfigController

Inheritancehumhub\modules\installer\controllers\ConfigController » humhub\components\Controller » yii\web\Controller

ConfigController allows inital configuration of humhub.

E.g. Name of Network, Root User

ConfigController can only run after SetupController wrote the initial configuration.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$actionTitlesMap array Page titles humhub\components\Controller
$pageTitle string Title of the rendered page humhub\components\Controller
$prependActionTitles boolean Append page title humhub\components\Controller
$subLayout null|string The name of the sub layout to be applied to this controller's views. humhub\components\Controller

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$access string Defines the ControllerAccess class for this controller responsible for managing access rules humhub\components\Controller

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionAdmin() Setup Administrative User humhub\modules\installer\controllers\ConfigController
actionBasic() Basic Settings Form humhub\modules\installer\controllers\ConfigController
actionFinish() humhub\modules\installer\controllers\ConfigController
actionFinished() Last Step, finish up the installation humhub\modules\installer\controllers\ConfigController
actionIndex() Index is only called on fresh databases, when there are already settings in database, the user will directly redirected to actionFinished() humhub\modules\installer\controllers\ConfigController
actionModules() Modules humhub\modules\installer\controllers\ConfigController
actionSampleData() Sample Data humhub\modules\installer\controllers\ConfigController
actionSecurity() Security humhub\modules\installer\controllers\ConfigController
actionUseCase() UseCase humhub\modules\installer\controllers\ConfigController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() Before each config controller action check if - Database Connection works - Database Migrated Up - Not already configured (e.g. update) humhub\modules\installer\controllers\ConfigController
behaviors() humhub\components\Controller
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\components\Controller
htmlRedirect() Create Redirect for AJAX Requests which output goes into HTML content. humhub\components\Controller
init() humhub\components\Controller
prependPageTitle() Prepend a page title. humhub\components\Controller
redirect() humhub\components\Controller
renderAjaxContent() humhub\components\Controller
renderContent() Renders a static string by applying the layouts (sublayout + layout. humhub\components\Controller
renderModalClose() Closes a modal humhub\components\Controller
setActionTitles() Set a map that indicates what page title should be shown for the currently active action. humhub\components\Controller
setJsViewStatus() Sets some ui state as current controller/module and active topmenu. humhub\components\Controller
setPageTitle() Set the page title. humhub\components\Controller

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
forbidden() humhub\components\Controller
getAccessRules() Returns access rules for the standard access control behavior. humhub\components\Controller

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_INIT \yii\base\Event An event raised on init a controller. humhub\components\Controller

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_INSTALL_SAMPLE_DATA 'install_sample_data' humhub\modules\installer\controllers\ConfigController
USECASE_CLUB 'club' humhub\modules\installer\controllers\ConfigController
USECASE_COMMUNITY 'community' humhub\modules\installer\controllers\ConfigController
USECASE_EDUCATION 'education' humhub\modules\installer\controllers\ConfigController
USECASE_OTHER 'other' humhub\modules\installer\controllers\ConfigController
USECASE_SOCIAL_INTRANET 'intranet' Use Cases humhub\modules\installer\controllers\ConfigController

Method Details

actionAdmin() public method

Setup Administrative User

This should be the last step, before the user is created also the application secret will created.

public void actionAdmin ( )
actionBasic() public method

Basic Settings Form

public void actionBasic ( )
actionFinish() public method

public void actionFinish ( )
actionFinished() public method

Last Step, finish up the installation

public void actionFinished ( )
actionIndex() public method

Index is only called on fresh databases, when there are already settings in database, the user will directly redirected to actionFinished()

public void actionIndex ( )
actionModules() public method

Modules

public void actionModules ( )
actionSampleData() public method

Sample Data

public void actionSampleData ( )
actionSecurity() public method

Security

public void actionSecurity ( )
actionUseCase() public method

UseCase

public void actionUseCase ( )
beforeAction() public method

Before each config controller action check if - Database Connection works - Database Migrated Up - Not already configured (e.g. update)

public void beforeAction ( $action )
$action