class EmptyDatabase implements ConnectionOptionsPreconditionInterface (View source)

Properties

protected InstallerOptions|null $installerOptions
protected Connection|null $connection

Methods

string
getName()

Get the precondition name.

string
getUniqueIdentifier()

Get the precondition handle.

bool
isOptional()

Is this an optional precondition?

$this
setInstallerOptions(InstallerOptions $installerOptions)

Set the installer options to be checked.

$this
setConnection(Connection $connection)

Set the connection to the database.

performCheck()

Get the precondition result.

Details

string getName()

Get the precondition name.

Return Value

string

See also

\Concrete\Core\Install\PreconditionInterface::getName()

string getUniqueIdentifier()

Get the precondition handle.

Return Value

string

See also

\Concrete\Core\Install\PreconditionInterface::getUniqueIdentifier()

bool isOptional()

Is this an optional precondition?

Return Value

bool

See also

\Concrete\Core\Install\PreconditionInterface::isOptional()

$this setInstallerOptions(InstallerOptions $installerOptions)

Set the installer options to be checked.

Parameters

InstallerOptions $installerOptions

Return Value

$this

See also

\Concrete\Core\Install\OptionsPreconditionInterface::setInstallerOptions()

$this setConnection(Connection $connection)

Set the connection to the database.

Parameters

Connection $connection

Return Value

$this

See also

\Concrete\Core\Install\ConnectionOptionsPreconditionInterface::setConnection()

PreconditionResult performCheck()

Get the precondition result.

Return Value

PreconditionResult

See also

\Concrete\Core\Install\PreconditionInterface::performCheck()