PHP Класс Spatie\MediaLibrary\Conversion\ConversionCollection

Наследование: extends Illuminate\Support\Collection
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
createForMedia ( Media $media ) : static
getByName ( string $name ) : mixed Get a conversion by it's name.
getConversions ( string $collectionName = '' ) Get all the conversions in the collection.
getConversionsFiles ( string $collectionName = '' ) : ConversionCollection Return the list of conversion files.
getNonQueuedConversions ( string $collectionName = '' ) : ConversionCollection * Get all the conversions in the collection that should not be queued.
getQueuedConversions ( string $collectionName = '' ) : ConversionCollection * Get all the conversions in the collection that should be queued.
setMedia ( Media $media )

Защищенные методы

Метод Описание
addConversionsFromRelatedModel ( Media $media ) Add the conversion that are defined on the related model of the given media.
addManipulationToConversion ( array $manipulation, string $conversionName ) * Add the given manipulation to the conversion with the given name.
addManipulationsFromDb ( Media $media ) Add the extra manipulations that are defined on the given media.

Описание методов

addConversionsFromRelatedModel() защищенный Метод

Add the conversion that are defined on the related model of the given media.
protected addConversionsFromRelatedModel ( Media $media )
$media Spatie\MediaLibrary\Media

addManipulationToConversion() защищенный Метод

* Add the given manipulation to the conversion with the given name.
protected addManipulationToConversion ( array $manipulation, string $conversionName )
$manipulation array
$conversionName string

addManipulationsFromDb() защищенный Метод

Add the extra manipulations that are defined on the given media.
protected addManipulationsFromDb ( Media $media )
$media Spatie\MediaLibrary\Media

createForMedia() публичный статический Метод

public static createForMedia ( Media $media ) : static
$media Spatie\MediaLibrary\Media
Результат static

getByName() публичный Метод

Get a conversion by it's name.
public getByName ( string $name ) : mixed
$name string
Результат mixed

getConversions() публичный Метод

Get all the conversions in the collection.
public getConversions ( string $collectionName = '' )
$collectionName string

getConversionsFiles() публичный Метод

Return the list of conversion files.
public getConversionsFiles ( string $collectionName = '' ) : ConversionCollection
$collectionName string
Результат ConversionCollection

getNonQueuedConversions() публичный Метод

* Get all the conversions in the collection that should not be queued.
public getNonQueuedConversions ( string $collectionName = '' ) : ConversionCollection
$collectionName string
Результат ConversionCollection

getQueuedConversions() публичный Метод

* Get all the conversions in the collection that should be queued.
public getQueuedConversions ( string $collectionName = '' ) : ConversionCollection
$collectionName string
Результат ConversionCollection

setMedia() публичный Метод

public setMedia ( Media $media )
$media Spatie\MediaLibrary\Media