Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • EmptyProductImage
  • EnvProductImageFileStorageSettings
  • GXEngineProduct
  • LegacyProductImageProcessing
  • ProductImage
  • ProductImageContainer
  • ProductListItem
  • ProductSettings
  • StoredProduct

Class LegacyProductImageProcessing

Class LegacyProductImageProcessing

LegacyProductImageProcessing implements ProductImageProcessingInterface
Package: Product\Entities
Category: System
Located at Services/Core/Product/Entities/LegacyProductImageProcessing.inc.php

Methods summary

public LegacyProductImageProcessing
# proceedImage( FilenameStringType $image )

Proceed Image

Proceed Image

Processes an image for the front end.

Parameters

$image
Image to proceed.

Returns

LegacyProductImageProcessing
Same instance for chained method calls.

Throws

InvalidArgumentException
if the provided image name is not valid.
FileNotFoundException
if the provided image was not found.
RuntimeException
if the PHP GD library is not installed.

Implementation of

ProductImageProcessingInterface::proceedImage()
protected
# _defineNeededConstantsForIncludes( )

Define Needed Constants for Includes

Define Needed Constants for Includes

These constants are needed for the include files. The global constants defined in admin/includes/configure.php are not available, because the current file is within in the src/includes folder and thus, is using the src/includes/configure.php, in which those constants are either not defined or not correct for this class.

protected boolean
# _isGdLibraryInstalled( )

Is GD Library Installed

Is GD Library Installed

Checks if the GD library is installed, which is necessary for the image processing. Returns true if the library is installed.

Returns

boolean
Is the PHP GD library installed?
protected
# _throwExceptionIfImageDoesNotExist( $image )

Throw Exception If Image Does Not Exist

Throw Exception If Image Does Not Exist

Checks if the image exist in the folder original_images. If the image does not exist, an exception will be thrown.

Parameters

$image
to check.

Throws

FileNotFoundException
if the image was not found.
API documentation generated by ApiGen