eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway:
+ Collaboration diagram for eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway:

Public Member Functions

 countFileReferences (array $files)
 Returns a map with the number of references each file from $files has. More...
 
 getFileReferenceData ($fieldId, $versionNo)
 Returns the file reference data for the given $fieldId in $versionNo. More...
 
 getReferencedFiles (array $fieldIds, $versionNo)
 Returns a map of files referenced by the given $fieldIds. More...
 
 removeFileReference ($fieldId, $versionNo)
 Removes a specific file reference for $fieldId and $versionId. More...
 
 removeFileReferences (array $fieldIds, $versionNo)
 Removes all file references for the given $fieldIds. More...
 
 storeFileReference (VersionInfo $versionInfo, Field $field)
 Stores the file reference in $field for $versionNo. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\StorageGateway
 setConnection ($connection)
 Sets the data storage connection to use. More...
 

Member Function Documentation

eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway::countFileReferences ( array  $files)
abstract

Returns a map with the number of references each file from $files has.

Parameters
array$files
Returns
array
eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway::getFileReferenceData (   $fieldId,
  $versionNo 
)
abstract

Returns the file reference data for the given $fieldId in $versionNo.

Parameters
mixed$fieldId
int$versionNo
Returns
array|void
eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway::getReferencedFiles ( array  $fieldIds,
  $versionNo 
)
abstract

Returns a map of files referenced by the given $fieldIds.

Parameters
array$fieldIds
int$versionNo
Returns
array
eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway::removeFileReference (   $fieldId,
  $versionNo 
)
abstract

Removes a specific file reference for $fieldId and $versionId.

Parameters
mixed$fieldId
int$versionNo
Returns
void
eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway::removeFileReferences ( array  $fieldIds,
  $versionNo 
)
abstract

Removes all file references for the given $fieldIds.

Parameters
array$fieldIds
int$versionNo
Returns
void
eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway::storeFileReference ( VersionInfo  $versionInfo,
Field  $field 
)
abstract

Stores the file reference in $field for $versionNo.

Parameters
VersionInfo$versionInfo
Field$field
Returns
void

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