SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class WelcomeController

Forms used for setting up SproutCMS for the first time

Functions

NameVisibilityDescription
__constructpublic 
addSampleActionpublicAdd sample content
addSampleFilesprivateAdd sample files from sample_content/files.xml
addSampleHomePageprivateUpdates to home page - hardcoded rather than an xml file
addSamplePagesprivateAdd sample files from sample_content/pages.xml
checklistpublicDisplay the welcome checklist
dbConfDatabasepublic (static)Generate and download a database config file
dbConfFormpublicShow a UI for generating a database config
dbConfHostspublic (static)Generate and download a dev hosts config file
dbConfPasswordpublic (static)Generate and download a password config file
dbConfResultpublicDisplay the generated database config
dbConfTestpublicAjax method to test the db connection for a given set of params
genDbConfigprivate (static)Generate a database config from given parameters
genDevHostsConfigprivate (static)Generate a dev hosts config, which contains the existing config and the current hostname
genPassConfigprivate (static)Generate a database password file from given parameters
passwordComplexityprivate (static)Ensure password has enough complexity
phpInfopublicShow a phpinfo() view along with some extra information
redirectpublicRedirect home page traffic to the welcome checklist
superOperatorActionpublicCreate a super operator
superOperatorConfpublicGenerate and download super operator config file
superOperatorFormpublicShow a UI to create a super-operator
superOperatorResultpublicShow the generated super operator details
syncpublicRun a database sync
testDbconfprivateTest the database config is correct
testDbsyncprivateTest that tables are available
testSampleContentprivateTest that sample content has been added
testSuperOpprivateTest whether one or more super operators have been created
testWelcomeprivateTest that the welcome module isn't installed
wipeTablesprivateWipe the tables used by the sample code system (dev only code)

public __construct

void $WelcomeController->__construct ( );

This function does not have a description

public addSampleAction

void $WelcomeController->addSampleAction ( );

Add sample content

private addSampleFiles

void $WelcomeController->addSampleFiles ( );

Add sample files from sample_content/files.xml

private addSampleHomePage

void $WelcomeController->addSampleHomePage ( );

Updates to home page - hardcoded rather than an xml file

private addSamplePages

void $WelcomeController->addSamplePages ( );

Add sample files from sample_content/pages.xml

public checklist

void $WelcomeController->checklist ( );

Display the welcome checklist

public dbConfDatabase

void WelcomeController::dbConfDatabase ( );

Generate and download a database config file

public dbConfForm

void $WelcomeController->dbConfForm ( );

Show a UI for generating a database config

public dbConfHosts

void WelcomeController::dbConfHosts ( );

Generate and download a dev hosts config file

public dbConfPassword

void WelcomeController::dbConfPassword ( );

Generate and download a password config file

public dbConfResult

void $WelcomeController->dbConfResult ( );

Display the generated database config

public dbConfTest

void $WelcomeController->dbConfTest ( );

Ajax method to test the db connection for a given set of params

private genDbConfig

string WelcomeController::genDbConfig ( array $data );

Generate a database config from given parameters

private genDevHostsConfig

string WelcomeController::genDevHostsConfig ( );

Generate a dev hosts config, which contains the existing config and the current hostname

private genPassConfig

string WelcomeController::genPassConfig ( array $data );

Generate a database password file from given parameters

private passwordComplexity

unknown WelcomeController::passwordComplexity ( mixed $str );

Ensure password has enough complexity

public phpInfo

void $WelcomeController->phpInfo ( );

Show a phpinfo() view along with some extra information

public redirect

void $WelcomeController->redirect ( );

Redirect home page traffic to the welcome checklist

public superOperatorAction

void $WelcomeController->superOperatorAction ( );

Create a super operator

public superOperatorConf

void $WelcomeController->superOperatorConf ( );

Generate and download super operator config file

public superOperatorForm

void $WelcomeController->superOperatorForm ( );

Show a UI to create a super-operator

public superOperatorResult

void $WelcomeController->superOperatorResult ( );

Show the generated super operator details

public sync

void $WelcomeController->sync ( );

Run a database sync

private testDbconf

array $WelcomeController->testDbconf ( );

Test the database config is correct

private testDbsync

array $WelcomeController->testDbsync ( );

Test that tables are available

private testSampleContent

array $WelcomeController->testSampleContent ( );

Test that sample content has been added

private testSuperOp

array $WelcomeController->testSuperOp ( );

Test whether one or more super operators have been created

private testWelcome

array $WelcomeController->testWelcome ( );

Test that the welcome module isn't installed

private wipeTables

void $WelcomeController->wipeTables ( );

Wipe the tables used by the sample code system (dev only code)