◆ __construct()
| FileObjectPropertyProviders::__construct |
( |
| ) |
|
◆ getImageFromIRSS()
| FileObjectPropertyProviders::getImageFromIRSS |
( |
StorageService |
$irss, |
|
|
ImageFactory |
$factory, |
|
|
Flavour |
$flavour |
|
) |
| |
|
private |
Definition at line 76 of file FileObjectPropertyProviders.php.
Referenced by getObjectTypeSpecificTileImage().
81 $urls = $irss->consume()->flavourUrls($flavour)->getURLsAsArray();
87 $available_widths = $this->crop_definition->getWidths();
88 array_pop($available_widths);
90 if (!isset($urls[count($available_widths)])) {
94 $image = $factory->responsive($urls[count($available_widths)],
'');
97 function ($carry, $size) use ($urls) {
98 $image = $carry[
'image']->withAdditionalHighResSource($urls[$carry[
'counter']], $size / 2);
99 $counter = ++$carry[
'counter'];
102 'counter' => $counter
105 [
'image' => $image,
'counter' => 0]
◆ getObjectTypeSpecificIcon()
| FileObjectPropertyProviders::getObjectTypeSpecificIcon |
( |
int |
$obj_id, |
|
|
IconFactory |
$icon_factory, |
|
|
StorageService |
$irss |
|
) |
| |
◆ getObjectTypeSpecificTileImage()
| FileObjectPropertyProviders::getObjectTypeSpecificTileImage |
( |
int |
$object_id, |
|
|
ImageFactory |
$factory, |
|
|
StorageService |
$irss |
|
) |
| |
◆ $crop_definition
◆ $extract_definition
◆ $icons
◆ $info
◆ $settings
| Settings FileObjectPropertyProviders::$settings |
|
private |
The documentation for this class was generated from the following file: