PHP Class DevSetupCommand

Inheritance: extends CConsoleCommand
Exibir arquivo Open project: openeyes/openeyes

Public Properties

Property Type Description
$gitowners

Protected Properties

Property Type Description
$config_path this should be changed once we've worked out where we want to store the configs for different clients
$mode
$mysqlp
$password
$username

Public Methods

Method Description
actionIndex ( string $label = 'sample', string $mode = 'http', null $username = null, string $branch = 'master', array $gitowner = [], boolean $reset = false, $resetfile = null, null $mysqlp = null ) Default Action.
getHelp ( )
getName ( )

Protected Methods

Method Description
cloneModule ( $module ) Clone the module from the appropriate repository.
copyConfig ( $config_file ) Backup and replace the current local common config file.
getConfigPath ( )
getGitAddress ( $module ) : mixed Iterate through configured git users to find the module repository.
getModulePath ( $module ) : string
resetDatabase ( $dumpfile ) Drop the current database and re-create.
runMigrations ( ) Run the core and module migrations.
setupModules ( array $modules, string $branch = 'master' ) Clone missing modules from the given list, and switch to specified branch.

Method Details

actionIndex() public method

Default Action.
public actionIndex ( string $label = 'sample', string $mode = 'http', null $username = null, string $branch = 'master', array $gitowner = [], boolean $reset = false, $resetfile = null, null $mysqlp = null )
$label string
$mode string
$username null
$branch string
$gitowner array
$reset boolean
$mysqlp null

cloneModule() protected method

Clone the module from the appropriate repository.
protected cloneModule ( $module )
$module

copyConfig() protected method

Backup and replace the current local common config file.
protected copyConfig ( $config_file )
$config_file

getConfigPath() protected method

protected getConfigPath ( )

getGitAddress() protected method

Iterate through configured git users to find the module repository.
protected getGitAddress ( $module ) : mixed
$module
return mixed

getHelp() public method

public getHelp ( )

getModulePath() protected method

protected getModulePath ( $module ) : string
$module
return string

getName() public method

public getName ( )

resetDatabase() protected method

Drop the current database and re-create.
protected resetDatabase ( $dumpfile )

runMigrations() protected method

Run the core and module migrations.
protected runMigrations ( )

setupModules() protected method

Clone missing modules from the given list, and switch to specified branch.
protected setupModules ( array $modules, string $branch = 'master' )
$modules array
$branch string

Property Details

$config_path protected_oe property

this should be changed once we've worked out where we want to store the configs for different clients
protected $config_path

$gitowners public_oe property

public $gitowners

$mode protected_oe property

protected $mode

$mysqlp protected_oe property

protected $mysqlp

$password protected_oe property

protected $password

$username protected_oe property

protected $username