PHP 클래스 AppserverIo\Appserver\Doctrine\Utils\ConnectionUtil

파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$application AppserverIo\Psr\Application\ApplicationInterface The application instance.

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
__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.

메소드 상세

fromDatabaseNode() 공개 메소드

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
리턴 array The DBAL connection parameters

get() 공개 정적인 메소드

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
리턴 AppserverIo\Appserver\Doctrine\Utils\DoctrineHelper The instance

getApplication() 공개 메소드

Returns the application instance.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
리턴 AppserverIo\Psr\Application\ApplicationInterface The application instance

프로퍼티 상세

$application 보호되어 있는 프로퍼티

The application instance.
protected ApplicationInterface,AppserverIo\Psr\Application $application
리턴 AppserverIo\Psr\Application\ApplicationInterface