CommonGateway\CoreBundle\Service\FileSystemCreateService

Methods

Name Description
__construct The class constructor.
createZipFileFromContent Writes a zip file in the local filesystem.
openFtpFilesystem Connects to a Filesystem.
openZipFilesystem Opens a zip filesystem.
removeZipFile Removes a zip file from the local filesystem.

FileSystemCreateService::__construct

Description

public __construct (void)

The class constructor.

Parameters

This function has no parameters.

Return Values

void


FileSystemCreateService::createZipFileFromContent

Description

public createZipFileFromContent (string $content)

Writes a zip file in the local filesystem.

Parameters

  • (string) $content : The string contents of the zip file.

Return Values

string


FileSystemCreateService::openFtpFilesystem

Description

public openFtpFilesystem (\Source $source)

Connects to a Filesystem.

Parameters

  • (\Source) $source : The Filesystem source to connect to.

Return Values

\Filesystem

The Filesystem Operator.

Throws Exceptions

\Exception


FileSystemCreateService::openZipFilesystem

Description

public openZipFilesystem (string $filename)

Opens a zip filesystem.

Parameters

  • (string) $filename : The Filename of the zip file.

Return Values

\Filesystem

The Filesystem Operator.

Throws Exceptions

\Exception


FileSystemCreateService::removeZipFile

Description

public removeZipFile (string $filename)

Removes a zip file from the local filesystem.

Parameters

  • (string) $filename : The file to delete.

Return Values

void