PHP Class eZ\Publish\Core\FieldType\BinaryBase\PathGenerator\LegacyPathGenerator

Inheritance: extends eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getStoragePathForField ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo )

Protected Methods

Method Description
getFirstPartOfMimeType ( string $mimeType ) : string Extracts the first part (before the '/') from the given $mimeType.

Method Details

getFirstPartOfMimeType() protected method

Extracts the first part (before the '/') from the given $mimeType.
protected getFirstPartOfMimeType ( string $mimeType ) : string
$mimeType string
return string

getStoragePathForField() public method

public getStoragePathForField ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo )
$field eZ\Publish\SPI\Persistence\Content\Field
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo