Switchboard
  • Namespace
  • Class
  • Tree

Namespaces

  • Fluxsauce
    • Switchboard

Classes

  • EnvDb
  • Environment
  • Persistent
  • Project
  • Provider
  • ProviderAcquia
  • ProviderPantheon
  • Site
  • Sqlite

Class Project

Local Project.

Fluxsauce\Switchboard\Persistent
Extended by Fluxsauce\Switchboard\Project
Namespace: Fluxsauce\Switchboard
Package: Fluxsauce\Switchboard
Located at library/fluxsauce/switchboard/src/Project.php

Methods summary

public array
# getDatabaseSpecs( )

Get the minimal database specs.

Get the minimal database specs.

Returns

array
Keys for database, host, user, password, port.
public string
# getDatabaseConnection( )

Get a database connection string.

Get a database connection string.

Returns

string
The command for connecting to a database.
public string
# getDatabaseUrl( )

Get a Drupal v6 database connection string.

Get a Drupal v6 database connection string.

Returns

string
The db-url string.
public string
# getDatabaseSettings( )

Get a Drupal v7 database connection settings.

Get a Drupal v7 database connection settings.

Returns

string
The databases array.
public string
# vcsCommitCommand( string $message )

Generate command to commit all code changes.

Generate command to commit all code changes.

Parameters

$message
string
$message The git commit message.

Returns

string
The git command.
public string
# vcsPullCommand( )

Generate command to pull code changes from remote.

Generate command to pull code changes from remote.

Returns

string
The git command.
public string
# vcsPushCommand( )

Generate command to push code changes to remote.

Generate command to push code changes to remote.

Returns

string
The git command.
public string
# vcsResetCommand( )

Generate command to reset all local code changes.

Generate command to reset all local code changes.

Returns

string
The git command.
public string
# toDrushAlias( )

Renders a project as a Drush alias.

Renders a project as a Drush alias.

Returns

string
Drush alias.

Methods inherited from Fluxsauce\Switchboard\Persistent

__construct(), __get(), __set(), create(), destroy(), getTableName(), read(), render(), renderDrushTable(), renderJson(), toArray(), update()

Magic methods summary

Properties summary

protected string $uuid
#

The UUID of the Project.

The UUID of the Project.

protected integer $siteId
#

External key to an associated Site.

External key to an associated Site.

protected string $hostname
#

The hostname for the local Project.

The hostname for the local Project.

protected string $username
#

The UNIX username for the local Project.

The UNIX username for the local Project.

protected integer $sshPort
#

The SSH port for the local Project.

The SSH port for the local Project.

protected string $codePath
#

The path on disk to the code root.

The path on disk to the code root.

protected string $databaseHost
#

The hostname for the Project database.

The hostname for the Project database.

protected string $databaseUsername
#

The username for the Project database.

The username for the Project database.

protected string $databasePassword
#

The password for the Project database.

The password for the Project database.

protected string $databaseName
#

The database name for the Project database.

The database name for the Project database.

protected integer $databasePort
#

The port for the Project database.

The port for the Project database.

protected string $filesPath
#

The path on disk to the files root.

The path on disk to the files root.

protected string $externalKeyName
#

Metadata for ORM defining database structure.

Metadata for ORM defining database structure.

Properties inherited from Fluxsauce\Switchboard\Persistent

$id, $name, $updated

Switchboard API documentation generated by ApiGen 2.8.0