PHP Class AppserverIo\Appserver\Doctrine\Utils\ConnectionUtil

Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$application AppserverIo\Psr\Application\ApplicationInterface The application instance.

Méthodes publiques

Méthode Description
fromDatabaseNode ( AppserverIo\Appserver\Core\Api\Node\DatabaseNodeInterface $databaseNode ) : array Creates an array with the connection parameters for a Doctrine DBAL connection from the passed database node.
get ( AppserverIo\Psr\Application\ApplicationInterface $application ) : AppserverIo\Appserver\Doctrine\Utils\DoctrineHelper Creates a new helper instance.
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface Returns the application instance.

Private Methods

Méthode Description
__clone ( ) : void This is a utility class, so protect it against cloning.
__construct ( AppserverIo\Psr\Application\ApplicationInterface $application ) This is a utility class, so protect it against direct instantiation.

Method Details

fromDatabaseNode() public méthode

Creates an array with the connection parameters for a Doctrine DBAL connection from the passed database node.
public fromDatabaseNode ( AppserverIo\Appserver\Core\Api\Node\DatabaseNodeInterface $databaseNode ) : array
$databaseNode AppserverIo\Appserver\Core\Api\Node\DatabaseNodeInterface The database node to create the connection parameters from
Résultat array The DBAL connection parameters

get() public static méthode

Creates a new helper instance.
public static get ( AppserverIo\Psr\Application\ApplicationInterface $application ) : AppserverIo\Appserver\Doctrine\Utils\DoctrineHelper
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
Résultat AppserverIo\Appserver\Doctrine\Utils\DoctrineHelper The instance

getApplication() public méthode

Returns the application instance.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
Résultat AppserverIo\Psr\Application\ApplicationInterface The application instance

Property Details

$application protected_oe property

The application instance.
protected ApplicationInterface,AppserverIo\Psr\Application $application
Résultat AppserverIo\Psr\Application\ApplicationInterface