eZPublishCommunityProject  2012.12
eZ\Publish\SPI\IO\Handler Interface Reference

Backend interface for handling of binary files I/O. More...

+ Inheritance diagram for eZ\Publish\SPI\IO\Handler:

Public Member Functions

 create (BinaryFileCreateStruct $createFilestruct)
 Creates and stores a new BinaryFile based on the BinaryFileCreateStruct $file. More...
 
 delete ($path)
 Deletes the existing BinaryFile with path $path. More...
 
 exists ($path)
 Checks if the BinaryFile with path $path exists. More...
 
 getFileContents ($path)
 Returns the contents of the BinaryFile identified by $path. More...
 
 getFileResource ($path)
 Returns a file resource to the BinaryFile identified by $path. More...
 
 load ($path)
 Loads the BinaryFile identified by $path. More...
 
 update ($path, BinaryFileUpdateStruct $updateFileStruct)
 Updates the file identified by $path with data from $updateFile. More...
 

Detailed Description

Backend interface for handling of binary files I/O.

Member Function Documentation

eZ\Publish\SPI\IO\Handler::create ( BinaryFileCreateStruct  $createFilestruct)

Creates and stores a new BinaryFile based on the BinaryFileCreateStruct $file.

Exceptions
\eZ\Publish\API\Repository\Exceptions\InvalidArgumentExceptionIf the target path already exists
Parameters
\eZ\Publish\SPI\IO\BinaryFileCreateStruct$createFilestruct
Returns
The newly created BinaryFile object

Implemented in eZ\Publish\Core\IO\DispatcherHandler, eZ\Publish\Core\IO\LegacyHandler, and eZ\Publish\Core\IO\InMemoryHandler.

eZ\Publish\SPI\IO\Handler::delete (   $path)

Deletes the existing BinaryFile with path $path.

Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf the file doesn't exist
Parameters
string$path

Implemented in eZ\Publish\Core\IO\DispatcherHandler, eZ\Publish\Core\IO\LegacyHandler, and eZ\Publish\Core\IO\InMemoryHandler.

eZ\Publish\SPI\IO\Handler::exists (   $path)

Checks if the BinaryFile with path $path exists.

Parameters
string$path
Returns
boolean

Implemented in eZ\Publish\Core\IO\LegacyHandler, eZ\Publish\Core\IO\InMemoryHandler, and eZ\Publish\Core\IO\DispatcherHandler.

eZ\Publish\SPI\IO\Handler::getFileContents (   $path)

Returns the contents of the BinaryFile identified by $path.

Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionif the file couldn't be found
Parameters
string$path
Returns
string

Implemented in eZ\Publish\Core\IO\LegacyHandler, eZ\Publish\Core\IO\InMemoryHandler, and eZ\Publish\Core\IO\DispatcherHandler.

eZ\Publish\SPI\IO\Handler::getFileResource (   $path)

Returns a file resource to the BinaryFile identified by $path.

Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf no file identified by $path exists
Parameters
string$path
Returns
resource

Implemented in eZ\Publish\Core\IO\LegacyHandler, eZ\Publish\Core\IO\InMemoryHandler, and eZ\Publish\Core\IO\DispatcherHandler.

eZ\Publish\SPI\IO\Handler::load (   $path)

Loads the BinaryFile identified by $path.

Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf no file identified by $path exists
Parameters
string$path
Returns

Implemented in eZ\Publish\Core\IO\LegacyHandler, eZ\Publish\Core\IO\InMemoryHandler, and eZ\Publish\Core\IO\DispatcherHandler.

eZ\Publish\SPI\IO\Handler::update (   $path,
BinaryFileUpdateStruct  $updateFileStruct 
)

Updates the file identified by $path with data from $updateFile.

Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf the source path doesn't exist
\eZ\Publish\API\Repository\Exceptions\InvalidArgumentExceptionIf the target path already exists
Parameters
string$path
\eZ\Publish\SPI\IO\BinaryFileUpdateStruct$updateFileStruct
Returns
The updated BinaryFile

Implemented in eZ\Publish\Core\IO\LegacyHandler, eZ\Publish\Core\IO\DispatcherHandler, and eZ\Publish\Core\IO\InMemoryHandler.


The documentation for this interface was generated from the following file: