PHP Класс AppserverIo\Appserver\Core\Api\ContainerService

Автор: Tim Wagner ([email protected])
Наследование: extends AppserverIo\Appserver\Core\Api\AbstractFileOperationService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
createSslCertificate ( SplFileInfo $certificate ) : void Creates the SSL file passed as parameter or nothing if the file already exists.
findAll ( ) : array Return's all container node configurations.
getAppBase ( string $uuid ) : string Returns the application base directory for the container with the passed UUID.
getIsInstalledFlag ( ) : SplFileInfo Return's the install flag information from the configuration directory.
load ( string $uuid ) : ContainerNode Returns the container for the passed UUID.
prepareFileSystem ( ) : void Prepares filesystem to be sure that everything is on place as expected
switchSetupMode ( string $newMode, string $configurationFilename, string $user ) : void Switches the setup mode to the passed value.

Защищенные методы

Метод Описание
isOpenSslAvailable ( ) : boolean Returns true if the OpenSSL extension is loaded, false otherwise

Описание методов

createSslCertificate() публичный Метод

Creates the SSL file passed as parameter or nothing if the file already exists.
public createSslCertificate ( SplFileInfo $certificate ) : void
$certificate SplFileInfo The file info about the SSL file to generate
Результат void

findAll() публичный Метод

Return's all container node configurations.
См. также: AppserverIo\Appserver\Core\Api\ServiceInterface::findAll()
public findAll ( ) : array
Результат array An array with container node configurations

getAppBase() публичный Метод

Returns the application base directory for the container with the passed UUID.
public getAppBase ( string $uuid ) : string
$uuid string UUID of the container to return the application base directory for
Результат string The application base directory for this container

getIsInstalledFlag() публичный Метод

Return's the install flag information from the configuration directory.
public getIsInstalledFlag ( ) : SplFileInfo
Результат SplFileInfo The install flag information

isOpenSslAvailable() защищенный Метод

Returns true if the OpenSSL extension is loaded, false otherwise
protected isOpenSslAvailable ( ) : boolean
Результат boolean

load() публичный Метод

Returns the container for the passed UUID.
public load ( string $uuid ) : ContainerNode
$uuid string Unique UUID of the container to return
Результат AppserverIo\Appserver\Core\Api\Node\ContainerNode The container with the UUID passed as parameter

prepareFileSystem() публичный Метод

Prepares filesystem to be sure that everything is on place as expected
public prepareFileSystem ( ) : void
Результат void

switchSetupMode() публичный Метод

Switches the setup mode to the passed value.
public switchSetupMode ( string $newMode, string $configurationFilename, string $user ) : void
$newMode string The mode to switch to
$configurationFilename string The path of the configuration filename
$user string The name of the user who started the application server
Результат void