eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage:

Protected Member Functions

 getPropertyMapping ()
 Returns a column to property mapping for the storage table. More...
 
 getStorageTable ()
 Returns the table name to store data in. More...
 
 setFetchColumns (\ezcQuerySelect $selectQuery, $fieldId, $versionNo)
 Set columns to be fetched from the database. More...
 
 setInsertColumns (\ezcQueryInsert $insertQuery, VersionInfo $versionInfo, Field $field)
 Sets the required insert columns to $selectQuery. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway\LegacyStorage
 castToPropertyValue ($value, $columnName)
 Returns $value casted as specified by getPropertyMapping(). More...
 
 getConnection ()
 Returns the active connection. More...
 
 getPropertyMapping ()
 Returns a column to property mapping for the storage table. More...
 
 getStorageTable ()
 Returns the table name to store data in. More...
 
 setFetchColumns (\ezcQuerySelect $selectQuery, $fieldId, $versionNo)
 Set columns to be fetched from the database. More...
 
 setInsertColumns (\ezcQueryInsert $insertQuery, VersionInfo $versionInfo, Field $field)
 Sets the required insert columns to $selectQuery. More...
 
 toPropertyName ($columnName)
 Returns the property name for the given $columnName. More...
 

Additional Inherited Members

- Public Member Functions inherited from eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway\LegacyStorage
 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 set o file references, referenced by the given $fieldIds. More...
 
 prependMimeToPath ($path, $mimeType)
 Prepends $path with the first part of the given $mimeType. 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...
 
 removeMimeFromPath ($path)
 Removes the prepended mime-type directory from $path for legacy storage. More...
 
 setConnection ($dbHandler)
 Set database handler for this gateway. More...
 
 storeFileReference (VersionInfo $versionInfo, Field $field)
 Stores the file reference in $field for $versionNo. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway
 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...
 
- Protected Attributes inherited from eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway\LegacyStorage
 $dbHandler
 

Member Function Documentation

eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage::getPropertyMapping ( )
protected

Returns a column to property mapping for the storage table.

Returns
void
eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage::getStorageTable ( )
protected

Returns the table name to store data in.

Returns
string
eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage::setFetchColumns ( \ezcQuerySelect  $selectQuery,
  $fieldId,
  $versionNo 
)
protected

Set columns to be fetched from the database.

This method is intended to be overwritten by derived classes in order to add additional columns to be fetched from the database. Please do not forget to call the parent when overwriting this method.

Parameters
\ezcQuerySelect$selectQuery
int$fieldId
int$versionNo
Returns
void
eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage::setInsertColumns ( \ezcQueryInsert  $insertQuery,
VersionInfo  $versionInfo,
Field  $field 
)
protected

Sets the required insert columns to $selectQuery.

This method is intended to be overwritten by derived classes in order to add additional columns to be set in the database. Please do not forget to call the parent when overwriting this method.

Parameters
\ezcQueryInsert$insertQuery
VersionInfo$versionInfo
Field$field
Returns
void

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