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
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories

Classes

  • AbstractAddonValueServiceFactory
  • AbstractAddonValueStorage
  • AbstractApiV2Controller
  • AbstractCategoryServiceFactory
  • AbstractCollection
  • AbstractCreateAccountProcess
  • AbstractCustomerFactory
  • AbstractCustomerServiceFactory
  • AbstractFileStorage
  • AbstractHttpContextFactory
  • AbstractHttpViewControllerRegistryFactory
  • AbstractImagesApiV2Controller
  • AbstractInvoiceServiceFactory
  • AbstractJsonSerializer
  • AbstractModuleCenterModule
  • AbstractModuleCenterModuleController
  • AbstractOrderServiceFactory
  • AbstractProductAttributeServiceFactory
  • AbstractProductServiceFactory
  • AbstractSliderServiceFactory
  • AbstractStaticSeoUrlServiceFactory
  • AbstractVersionInfoItem
  • AbstractVersionInfoReader
  • AddonValueService
  • AddonValueServiceFactory
  • AddonValueStorageFactory
  • AddressBlock
  • AddressBookService
  • AddressClass
  • AddressesApiV2Controller
  • AddressFormatProvider
  • AddressFormatsApiV2Controller
  • AddressJsonSerializer
  • AdminFavoritesAjaxController
  • AdminHttpViewController
  • AdminInfoBoxAjaxController
  • AdminLayoutHttpControllerResponse
  • AdminPageHttpControllerResponse
  • AfterbuyAjaxController
  • AfterbuyModuleCenterModule
  • AfterbuyModuleCenterModuleController
  • AmazonPayConfigurationController
  • ApiV2Authenticator
  • Asset
  • AssetCollection
  • AttachmentCollection
  • AttachmentName
  • AttachmentPath
  • AttachmentsApiV2Controller
  • AttachmentsHandler
  • AuthFactory
  • AuthService
  • AuthSettings
  • AuthStrategyCollection
  • BoolType
  • BrickfoxModuleCenterModule
  • BrickfoxModuleCenterModuleController
  • CacheTokenHelper
  • CartController
  • CartDropdownController
  • CartShippingCostsController
  • CatalogSelectWidgetAjaxController
  • CategoriesApiV2Controller
  • Category
  • CategoryAddonValueStorage
  • CategoryFactory
  • CategoryIconsApiV2Controller
  • CategoryImagesApiV2Controller
  • CategoryJsonSerializer
  • CategoryListItem
  • CategoryListItemCollection
  • CategoryListItemJsonSerializer
  • CategoryListProvider
  • CategoryListProviderFactory
  • CategoryObjectService
  • CategoryReadService
  • CategoryRepository
  • CategoryRepositoryDeleter
  • CategoryRepositoryReader
  • CategoryRepositoryWriter
  • CategoryServiceFactory
  • CategorySettings
  • CategorySettingsRepository
  • CategorySettingsRepositoryReader
  • CategorySettingsRepositoryWriter
  • CategoryWriteService
  • CheckQuantityController
  • CheckStatusController
  • ClassFinder
  • ColorHelper
  • ContactCollection
  • ContactName
  • ContactType
  • ContentManagerElementsAjaxController
  • ContentManagerElementsController
  • ContentManagerPagesAjaxController
  • ContentManagerPagesController
  • ContentManagerProductContentsAjaxController
  • ContentManagerProductContentsController
  • ContentNavigationCollection
  • CookieBarController
  • CountriesApiV2Controller
  • CountryJsonSerializer
  • CountryService
  • CreateAccountProcess
  • CreateGuestController
  • CreateRegistreeController
  • CrossCuttingLoader
  • CurrencyCode
  • Customer
  • CustomerAccountInputValidator
  • CustomerAdditionalAddressInfo
  • CustomerAddonValueStorage
  • CustomerAddress
  • CustomerAddressDeleter
  • CustomerAddressInputValidator
  • CustomerAddressReader
  • CustomerAddressRepository
  • CustomerAddressWriter
  • CustomerB2BStatus
  • CustomerCallNumber
  • CustomerCity
  • CustomerCompany
  • CustomerCountry
  • CustomerCountryIso2
  • CustomerCountryIso3
  • CustomerCountryName
  • CustomerCountryReader
  • CustomerCountryRepository
  • CustomerCountryZone
  • CustomerCountryZoneIsoCode
  • CustomerCountryZoneName
  • CustomerCountryZoneReader
  • CustomerCountryZoneRepository
  • CustomerDateOfBirth
  • CustomerDeleter
  • CustomerEmail
  • CustomerFactory
  • CustomerFirstname
  • CustomerGender
  • CustomerGroup
  • CustomerGroupAccessRepository
  • CustomerGroupCollection
  • CustomerGroupCollectionSerializer
  • CustomerGroupConfigurations
  • CustomerGroupConfigurationsSerializer
  • CustomerGroupDeleter
  • CustomerGroupFactory
  • CustomerGroupReader
  • CustomerGroupReadService
  • CustomerGroupRepository
  • CustomerGroupsApiV2Controller
  • CustomerGroupSerializer
  • CustomerGroupServiceFactory
  • CustomerGroupSettings
  • CustomerGroupSettingsSerializer
  • CustomerGroupWriter
  • CustomerGroupWriteService
  • CustomerHashedPassword
  • CustomerHouseNumber
  • CustomerInputToCollectionTransformer
  • CustomerInputValidator
  • CustomerInputValidatorSettings
  • CustomerJsonSerializer
  • CustomerLastname
  • CustomerLoginController
  • CustomerMemo
  • CustomerMemoCollection
  • CustomerNumber
  • CustomerPassword
  • CustomerPostcode
  • CustomerReader
  • CustomerReadService
  • CustomerRegistrationInputValidatorService
  • CustomerRepository
  • CustomersApiV2Controller
  • CustomerService
  • CustomerServiceFactory
  • CustomerServiceSettings
  • CustomerStatusHelper
  • CustomerStatusInformation
  • CustomerStatusProvider
  • CustomerStreet
  • CustomerSuburb
  • CustomerVatNumber
  • CustomerWriter
  • CustomerWriteService
  • DashboardController
  • DataTableColumn
  • DataTableColumnCollection
  • DataTableColumnType
  • DataTableHelper
  • DecimalType
  • DefaultApiV2Controller
  • DefaultTemplateSettings
  • DocumentFileStorage
  • DynamicShopMessagesController
  • EditableCollection
  • EditableKeyValueCollection
  • EkomiModuleCenterModule
  • EkomiModuleCenterModuleController
  • Email
  • EmailAddress
  • EmailAttachment
  • EmailCollection
  • EmailContact
  • EmailContent
  • EmailDeleter
  • EmailFactory
  • EmailJsonSerializer
  • EmailParser
  • EmailReader
  • EmailRepository
  • EmailsApiV2Controller
  • EmailsController
  • EmailService
  • EmailStringType
  • EmailSubject
  • EmailWriter
  • EmbeddedModuleController
  • EmptyCurrencyCode
  • EmptyDateTime
  • EmptyLanguageCode
  • EmptyProductImage
  • EnvCategoryServiceSettings
  • EnvInvoiceServiceSettings
  • EnvironmentClassFinderSettings
  • EnvironmentHttpContextFactory
  • EnvironmentHttpViewControllerRegistryFactory
  • EnvProductImageFileStorageSettings
  • EnvSlideImageFileStorageSettings
  • ExistingDirectory
  • ExistingFile
  • ExtraContentController
  • FileDownloadInformation
  • FileManagerController
  • FilenameStringType
  • FilesystemHelper
  • FilterController
  • FindologicModuleCenterModule
  • FindologicModuleCenterModuleController
  • FontAwesomeIconClassProvider
  • FrontendFilenamesProvider
  • GeschaeftskundenversandConfigurationStorage
  • GeschaeftskundenversandController
  • GeschaeftskundenversandLogger
  • GeschaeftskundenversandModuleCenterModule
  • GeschaeftskundenversandModuleCenterModuleController
  • GeschaeftskundenversandProduct
  • GeschaeftskundenversandShipment
  • GeschaeftskundenversandSoapAdapter
  • GoogleAdwordConversionModuleCenterModule
  • GoogleAdwordConversionModuleCenterModuleController
  • GXCoreLoader
  • GXCoreLoaderSettings
  • GXEngineOrder
  • GXEngineProduct
  • GXEngineQuantityUnit
  • GXSmarty
  • HeidelpayModuleCenterModuleController
  • HermesModuleCenterModule
  • HermesModuleCenterModuleController
  • HttpApiV2Controller
  • HttpContext
  • HttpContextReader
  • HttpControllerResponse
  • HttpDispatcher
  • HttpResponseProcessor
  • HttpService
  • HttpServiceFactory
  • HttpViewController
  • HttpViewControllerFactory
  • HttpViewControllerRegistry
  • IdCollection
  • IdType
  • IloxxModuleCenterModule
  • IloxxModuleCenterModuleController
  • ImageFileStorage
  • ImageProcessingController
  • ImageRequestController
  • InfoBoxFactory
  • InfoBoxMessage
  • InfoBoxMessageCollection
  • InfoBoxRepository
  • InfoBoxRepositoryDeleter
  • InfoBoxRepositoryReader
  • InfoBoxRepositoryWriter
  • InfoBoxService
  • IntrashipModuleCenterModule
  • IntrashipModuleCenterModuleController
  • IntType
  • InvoiceActions
  • InvoiceArchiveReadService
  • InvoiceArchiveWriteService
  • InvoiceFileEntitler
  • InvoiceInformation
  • InvoiceListGenerator
  • InvoiceListItem
  • InvoiceListItemCollection
  • InvoiceRepository
  • InvoiceServiceFactory
  • InvoicesModalsAjaxController
  • InvoicesOverviewAjaxController
  • InvoicesOverviewColumns
  • InvoicesOverviewController
  • InvoicesOverviewTooltips
  • ItRechtModuleCenterModule
  • ItRechtModuleCenterModuleController
  • JanolawModuleCenterModule
  • JanolawModuleCenterModuleController
  • JsConfigurationController
  • JSEngineConfiguration
  • JsonHttpControllerResponse
  • JsTranslationsController
  • JSWidgetsAjaxController
  • KeyValueCollection
  • KlarnaModuleCenterModuleController
  • LanguageCode
  • LanguageHelper
  • LanguageProvider
  • LawsController
  • LegacyProductImageProcessing
  • LettrModuleCenterModule
  • LettrModuleCenterModuleController
  • LiveSearchController
  • MagnalisterModuleCenterModule
  • MagnalisterModuleCenterModuleController
  • MailbeezModuleCenterModule
  • MailbeezModuleCenterModuleController
  • MailerAdapter
  • Manufacturer
  • ManufacturerCollection
  • ManufacturerDeleter
  • ManufacturerFactory
  • ManufacturerReader
  • ManufacturerReadService
  • ManufacturerRepository
  • ManufacturersApiV2Controller
  • ManufacturerServiceFactory
  • ManufacturerWriter
  • ManufacturerWriteService
  • MaxFileSizeController
  • Md5Strategy
  • MediafinanzModuleCenterModule
  • MediafinanzModuleCenterModuleController
  • ModuleCenterController
  • ModuleCenterModuleCollection
  • ModuleTitleProvider
  • NewAttributesController
  • NewsletterLinkModuleCenterModule
  • NewsletterLinkModuleCenterModuleController
  • NonEmptyStringType
  • OrderActions
  • OrderAddonValueStorage
  • OrderAddressBlock
  • OrderFactory
  • OrderItem
  • OrderItemAddonValueStorage
  • OrderItemAttribute
  • OrderItemAttributeCollection
  • OrderItemAttributeFactory
  • OrderItemAttributeRepository
  • OrderItemAttributeRepositoryDeleter
  • OrderItemAttributeRepositoryFactory
  • OrderItemAttributeRepositoryReader
  • OrderItemAttributeRepositoryWriter
  • OrderItemCollection
  • OrderItemDownloadInformation
  • OrderItemDownloadInformationCollection
  • OrderItemFactory
  • OrderItemProperty
  • OrderItemPropertyFactory
  • OrderItemPropertyRepository
  • OrderItemPropertyRepositoryDeleter
  • OrderItemPropertyRepositoryReader
  • OrderItemPropertyRepositoryWriter
  • OrderItemRepository
  • OrderItemRepositoryDeleter
  • OrderItemRepositoryReader
  • OrderItemRepositoryWriter
  • OrderJsonSerializer
  • OrderListGenerator
  • OrderListItem
  • OrderListItemCollection
  • OrderListItemJsonSerializer
  • OrderObjectService
  • OrderPaymentType
  • OrderReadService
  • OrderRepository
  • OrderRepositoryDeleter
  • OrderRepositoryReader
  • OrderRepositoryWriter
  • OrdersApiV2Controller
  • OrderServiceFactory
  • OrderServiceSettings
  • OrderShippingType
  • OrdersHistoryApiV2Controller
  • OrdersItemsApiV2Controller
  • OrdersItemsAttributesApiV2Controller
  • OrdersModalsAjaxController
  • OrdersOverviewAjaxController
  • OrdersOverviewColumns
  • OrdersOverviewController
  • OrdersOverviewTooltips
  • OrderStatus
  • OrderStatusCollection
  • OrderStatusDeleter
  • OrderStatusesApiV2Controller
  • OrderStatusFactory
  • OrderStatusHistoryListItem
  • OrderStatusHistoryListItemCollection
  • OrderStatusHistoryStorage
  • OrderStatusReader
  • OrderStatusRepository
  • OrderStatusService
  • OrderStatusServiceFactory
  • OrderStatusStyles
  • OrderStatusWriter
  • OrdersTotalsApiV2Controller
  • OrderTooltipController
  • OrderTotal
  • OrderTotalCollection
  • OrderTotalFactory
  • OrderTotalRepository
  • OrderTotalRepositoryDeleter
  • OrderTotalRepositoryReader
  • OrderTotalRepositoryWriter
  • OrderTrackingInformationCollection
  • OrderWriteService
  • PackedDownloadController
  • ParcelShopFinder
  • ParcelshopfinderController
  • ParcelShopFinderLogger
  • ParcelshopfinderModuleCenterModule
  • ParcelshopfinderModuleCenterModuleController
  • PasswordEncryptionSettings
  • PasswordHashStrategy
  • PathType
  • PaymentTitleProvider
  • PayOneModuleCenterModuleController
  • PayPalConfigurationController
  • PayPalController
  • PaypalNGModuleCenterModuleController
  • PostfinderModuleCenterModule
  • PostfinderModuleCenterModuleController
  • Precheck
  • ProductAddonValueStorage
  • ProductAttribute
  • ProductAttributeCollection
  • ProductAttributeFactory
  • ProductAttributeObjectService
  • ProductAttributeRepository
  • ProductAttributeRepositoryDeleter
  • ProductAttributeRepositoryReader
  • ProductAttributeRepositoryWriter
  • ProductAttributeService
  • ProductAttributeServiceFactory
  • ProductAttributesModuleCenterModule
  • ProductAttributesModuleCenterModuleController
  • ProductCategoryLinker
  • ProductFactory
  • ProductImage
  • ProductImageCollection
  • ProductImageContainer
  • ProductImageContainerRepository
  • ProductImageFileStorage
  • ProductImagesApiV2Controller
  • ProductJsonSerializer
  • ProductListItem
  • ProductListItemCollection
  • ProductListItemJsonSerializer
  • ProductListProvider
  • ProductListProviderFactory
  • ProductMediaContentController
  • ProductObjectService
  • ProductPermissionSetter
  • ProductQuestionController
  • ProductReadService
  • ProductRepository
  • ProductRepositoryDeleteHelper
  • ProductRepositoryDeleter
  • ProductRepositoryReader
  • ProductRepositoryWriter
  • ProductsApiV2Controller
  • ProductsContentFileStorage
  • ProductServiceFactory
  • ProductSettings
  • ProductSettingsRepository
  • ProductSettingsRepositoryReader
  • ProductSettingsRepositoryWriter
  • ProductsLinksApiV2Controller
  • ProductWriteService
  • ProtectedShopsModuleCenterModule
  • ProtectedShopsModuleCenterModuleController
  • QuantityUnitAjaxController
  • QuantityUnitCollection
  • QuantityUnitController
  • QuantityUnitFactory
  • QuantityUnitReadService
  • QuantityUnitRepository
  • QuantityUnitsApiV2Controller
  • QuantityUnitServiceFactory
  • QuantityUnitStorage
  • QuantityUnitWriteService
  • QuickEditDocuments
  • QuickEditOverviewAjaxController
  • QuickEditOverviewColumns
  • QuickEditOverviewController
  • QuickEditOverviewTooltips
  • QuickEditProductGraduatedPricesReader
  • QuickEditProductGraduatedPricesRepository
  • QuickEditProductListItem
  • QuickEditProductPropertiesAjaxController
  • QuickEditProductPropertiesListItem
  • QuickEditProductPropertiesReader
  • QuickEditProductPropertiesRepository
  • QuickEditProductPropertiesWriter
  • QuickEditProductSpecialPriceListItem
  • QuickEditProductSpecialPricesReader
  • QuickEditProductSpecialPricesRepository
  • QuickEditProductSpecialPricesWriter
  • QuickEditPropertiesOverviewColumns
  • QuickEditPropertiesTooltips
  • QuickEditService
  • QuickEditServiceFactory
  • QuickEditSpecialPricesAjaxController
  • QuickEditSpecialPricesOverviewColumns
  • QuickEditSpecialPriceTooltips
  • RedirectHttpControllerResponse
  • ResponsiveFilemanagerController
  • ResponsiveFileManagerModuleCenterModule
  • ResponsiveFileManagerModuleCenterModuleController
  • SessionTimeoutAjaxController
  • SharedShoppingCartConfigurationController
  • SharedShoppingCartController
  • SharedShoppingCartDeleter
  • SharedShoppingCartModuleCenterModule
  • SharedShoppingCartModuleCenterModuleController
  • SharedShoppingCartReader
  • SharedShoppingCartRepository
  • SharedShoppingCartService
  • SharedShoppingCartSettings
  • SharedShoppingCartWriter
  • ShipcloudController
  • ShipcloudModuleCenterModule
  • ShipcloudModuleCenterModuleController
  • ShippingTitleProvider
  • ShopInformationApiV2Controller
  • ShopKeyController
  • Slide
  • SlideCollection
  • SlideImage
  • SlideImageArea
  • SlideImageAreaCollection
  • SlideImageAreaRepository
  • SlideImageAreaRepositoryDeleter
  • SlideImageAreaRepositoryReader
  • SlideImageAreaRepositoryWriter
  • SlideImageCollection
  • SlideImageFileStorage
  • SlideImageRepository
  • SlideImageRepositoryDeleter
  • SlideImageRepositoryReader
  • SlideImageRepositoryWriter
  • Slider
  • SliderAssignmentRepository
  • SliderCollection
  • SlideRepository
  • SlideRepositoryDeleter
  • SlideRepositoryReader
  • SlideRepositoryWriter
  • SliderJsonSerializer
  • SliderReadService
  • SliderRepository
  • SliderRepositoryDeleter
  • SliderRepositoryReader
  • SliderRepositoryWriter
  • SlidersDetailsAjaxController
  • SlidersDetailsController
  • SliderServiceFactory
  • SlidersOverviewAjaxController
  • SlidersOverviewController
  • SliderWriteService
  • Smarty_Resource_Get_Usermod
  • StaticCrossCuttingLoader
  • StaticGXCoreLoader
  • StaticSeoUrl
  • StaticSeoUrlAjaxController
  • StaticSeoUrlCollection
  • StaticSeoUrlContent
  • StaticSeoUrlContentCollection
  • StaticSeoUrlContentRepository
  • StaticSeoUrlContentRepositoryDeleter
  • StaticSeoUrlContentRepositoryReader
  • StaticSeoUrlContentRepositoryWriter
  • StaticSeoUrlController
  • StaticSeoUrlReadService
  • StaticSeoUrlRepository
  • StaticSeoUrlRepositoryDeleter
  • StaticSeoUrlRepositoryReader
  • StaticSeoUrlRepositoryWriter
  • StaticSeoUrlServiceFactory
  • StaticSeoUrlWriteService
  • StatisticsService
  • StoredCategory
  • StoredOrderItem
  • StoredOrderItemAttribute
  • StoredOrderItemAttributeCollection
  • StoredOrderItemCollection
  • StoredOrderItemProperty
  • StoredOrderTotal
  • StoredOrderTotalCollection
  • StoredProduct
  • StoredProductAttribute
  • StoredProductAttributeCollection
  • StringCollection
  • StringHelper
  • StringType
  • StyleEdit3AuthenticationController
  • TaxClassesApiV2Controller
  • TaxRatesApiV2Controller
  • TaxZonesApiV2Controller
  • TemplateConfigurationController
  • TrustedShopsModuleCenterModule
  • TrustedShopsModuleCenterModuleController
  • UnknownCustomerCountry
  • UploadedFile
  • UrlRewrite
  • UrlRewriteCollection
  • UrlRewriteStorage
  • UserConfigurationController
  • UserConfigurationReader
  • UserConfigurationService
  • UserConfigurationWriter
  • UsernamePasswordCredentials
  • VatNumberValidator
  • VersionInfoController
  • VersionInfoDatabaseItem
  • VersionInfoDatabaseReader
  • VersionInfoFileItem
  • VersionInfoFileReader
  • VersionInfoItemFactory
  • VersionInfoRepository
  • VersionInfoService
  • VersionInfoServiceFactory
  • VPE
  • VPEAjaxController
  • VpeApiV2Controller
  • VPECollection
  • VPEController
  • VPEFactory
  • VPEReadService
  • VPERepository
  • VPEServiceFactory
  • VPEStorage
  • VPEWriteService
  • WishListController
  • WritableDirectory
  • WritableFile
  • YategoModuleCenterModule
  • YategoModuleCenterModuleController
  • YoochooseModuleCenterModule
  • YoochooseModuleCenterModuleController
  • ZoneJsonSerializer
  • ZonesApiV2Controller
  • ZonesController

Interfaces

  • AddonValueContainerInterface
  • AddonValueServiceInterface
  • AddonValueStorageFactoryInterface
  • AddressBlockInterface
  • AddressBookServiceInterface
  • AddressClassInterface
  • AddressFormatProviderInterface
  • AdminStatusOnlyInterface
  • AssetCollectionInterface
  • AssetInterface
  • AttachmentCollectionInterface
  • AttachmentNameInterface
  • AttachmentPathInterface
  • AttachmentsHandlerInterface
  • AuthCredentialsInterface
  • AuthFactoryInterface
  • AuthServiceInterface
  • AuthSettingsInterface
  • AuthStrategyInterface
  • CacheTokenHelperInterface
  • CategoryFactoryInterface
  • CategoryInterface
  • CategoryListProviderFactoryInterface
  • CategoryListProviderInterface
  • CategoryObjectServiceInterface
  • CategoryReadServiceInterface
  • CategoryRepositoryDeleterInterface
  • CategoryRepositoryInterface
  • CategoryRepositoryReaderInterface
  • CategoryRepositoryWriterInterface
  • CategoryServiceSettingsInterface
  • CategorySettingsInterface
  • CategorySettingsRepositoryInterface
  • CategorySettingsRepositoryReaderInterface
  • CategorySettingsRepositoryWriterInterface
  • CategoryWriteServiceInterface
  • ClassFinderInterface
  • ClassFinderSettingsInterface
  • ContactCollectionInterface
  • ContactNameInterface
  • ContactTypeInterface
  • ContentNavigationCollectionInterface
  • ContentViewInterface
  • CountryServiceInterface
  • CrossCuttingLoaderInterface
  • CrossCuttingObjectInterface
  • CustomerAccountInputValidatorInterface
  • CustomerAdditionalAddressInfoInterface
  • CustomerAddressDeleterInterface
  • CustomerAddressInputValidatorInterface
  • CustomerAddressInterface
  • CustomerAddressReaderInterface
  • CustomerAddressRepositoryInterface
  • CustomerAddressWriterInterface
  • CustomerB2BStatusInterface
  • CustomerCallNumberInterface
  • CustomerCityInterface
  • CustomerCompanyInterface
  • CustomerCountryInterface
  • CustomerCountryIso2Interface
  • CustomerCountryIso3Interface
  • CustomerCountryNameInterface
  • CustomerCountryReaderInterface
  • CustomerCountryRepositoryInterface
  • CustomerCountryZoneInterface
  • CustomerCountryZoneIsoCodeInterface
  • CustomerCountryZoneNameInterface
  • CustomerCountryZoneReaderInterface
  • CustomerCountryZoneRepositoryInterface
  • CustomerDeleterInterface
  • CustomerEmailInterface
  • CustomerFirstnameInterface
  • CustomerGenderInterface
  • CustomerGroupAccessRepositoryInterface
  • CustomerGroupCollectionSerializerInterface
  • CustomerGroupConfigurationsInterface
  • CustomerGroupConfigurationsSerializerInterface
  • CustomerGroupDeleterInterface
  • CustomerGroupInterface
  • CustomerGroupReaderInterface
  • CustomerGroupReadServiceInterface
  • CustomerGroupRepositoryInterface
  • CustomerGroupSerializerInterface
  • CustomerGroupSettingsInterface
  • CustomerGroupSettingsSerializerInterface
  • CustomerGroupWriterInterface
  • CustomerGroupWriteServiceInterface
  • CustomerHouseNumberInterface
  • CustomerInputValidatorInterface
  • CustomerInputValidatorSettingsInterface
  • CustomerInterface
  • CustomerLastnameInterface
  • CustomerNumberInterface
  • CustomerPasswordInterface
  • CustomerPostcodeInterface
  • CustomerReaderInterface
  • CustomerReadServiceInterface
  • CustomerRegistrationInputValidatorServiceInterface
  • CustomerRepositoryInterface
  • CustomerServiceInterface
  • CustomerServiceSettingsInterface
  • CustomerStatusHelperInterface
  • CustomerStatusProviderInterface
  • CustomerStreetInterface
  • CustomerSuburbInterface
  • CustomerVatNumberInterface
  • CustomerWriterInterface
  • CustomerWriteServiceInterface
  • EmailAddressInterface
  • EmailAttachmentInterface
  • EmailCollectionInterface
  • EmailContactInterface
  • EmailContentInterface
  • EmailDeleterInterface
  • EmailFactoryInterface
  • EmailInterface
  • EmailReaderInterface
  • EmailRepositoryInterface
  • EmailServiceInterface
  • EmailSubjectInterface
  • EmailWriterInterface
  • FilesystemHelperInterface
  • GXCoreLoaderInterface
  • GXCoreLoaderSettingsInterface
  • HttpContextInterface
  • HttpContextReaderInterface
  • HttpControllerResponseInterface
  • HttpDispatcherInterface
  • HttpResponseProcessorInterface
  • HttpServiceFactoryInterface
  • HttpServiceInterface
  • HttpViewControllerFactoryInterface
  • HttpViewControllerInterface
  • HttpViewControllerRegistryInterface
  • IdInterface
  • InfoBoxFactoryInterface
  • InfoBoxMessageInterface
  • InfoBoxRepositoryDeleterInterface
  • InfoBoxRepositoryInterface
  • InfoBoxRepositoryReaderInterface
  • InfoBoxRepositoryWriterInterface
  • InfoBoxServiceInterface
  • InvoiceArchiveReadServiceInterface
  • InvoiceArchiveWriteServiceInterface
  • InvoiceFileEntitlerInterface
  • InvoiceListGeneratorInterface
  • InvoiceRepositoryInterface
  • InvoiceServiceSettingsInterface
  • LanguageHelperInterface
  • LanguageProviderInterface
  • MailerAdapterInterface
  • ManufacturerDeleterInterface
  • ManufacturerInterface
  • ManufacturerReaderInterface
  • ManufacturerReadServiceInterface
  • ManufacturerRepositoryInterface
  • ManufacturerWriterInterface
  • ManufacturerWriteServiceInterface
  • ModuleCenterModuleCollectionInterface
  • ModuleCenterModuleInterface
  • OrderFactoryInterface
  • OrderInterface
  • OrderItemAttributeFactoryInterface
  • OrderItemAttributeInterface
  • OrderItemAttributeRepositoryDeleterInterface
  • OrderItemAttributeRepositoryFactoryInterface
  • OrderItemAttributeRepositoryInterface
  • OrderItemAttributeRepositoryReaderInterface
  • OrderItemAttributeRepositoryWriterInterface
  • OrderItemFactoryInterface
  • OrderItemInterface
  • OrderItemPropertyFactoryInterface
  • OrderItemPropertyRepositoryDeleterInterface
  • OrderItemPropertyRepositoryReaderInterface
  • OrderItemPropertyRepositoryWriterInterface
  • OrderItemRepositoryDeleterInterface
  • OrderItemRepositoryInterface
  • OrderItemRepositoryReaderInterface
  • OrderItemRepositoryWriterInterface
  • OrderListGeneratorInterface
  • OrderObjectServiceInterface
  • OrderPaymentTypeInterface
  • OrderReadServiceInterface
  • OrderRepositoryDeleterInterface
  • OrderRepositoryInterface
  • OrderRepositoryReaderInterface
  • OrderRepositoryWriterInterface
  • OrderServiceSettingsInterface
  • OrderShippingTypeInterface
  • OrderStatusDeleterInterface
  • OrderStatusFactoryInterface
  • OrderStatusHistoryReaderInterface
  • OrderStatusHistoryWriterInterface
  • OrderStatusInterface
  • OrderStatusReaderInterface
  • OrderStatusRepositoryInterface
  • OrderStatusServiceFactoryInterface
  • OrderStatusServiceInterface
  • OrderStatusWriterInterface
  • OrderTotalFactoryInterface
  • OrderTotalInterface
  • OrderTotalRepositoryDeleterInterface
  • OrderTotalRepositoryInterface
  • OrderTotalRepositoryReaderInterface
  • OrderTotalRepositoryWriterInterface
  • OrderWriteServiceInterface
  • ProductAttributeFactoryInterface
  • ProductAttributeInterface
  • ProductAttributeObjectServiceInterface
  • ProductAttributeRepositoryDeleterInterface
  • ProductAttributeRepositoryInterface
  • ProductAttributeRepositoryReaderInterface
  • ProductAttributeRepositoryWriterInterface
  • ProductAttributeServiceInterface
  • ProductCategoryLinkerInterface
  • ProductFactoryInterface
  • ProductImageContainerInterface
  • ProductImageContainerRepositoryInterface
  • ProductImageInterface
  • ProductImagePathsSettingsInterface
  • ProductImageProcessingInterface
  • ProductInterface
  • ProductListProviderFactoryInterface
  • ProductListProviderInterface
  • ProductObjectServiceInterface
  • ProductPermissionSetterInterface
  • ProductReadServiceInterface
  • ProductRepositoryDeleterInterface
  • ProductRepositoryInterface
  • ProductRepositoryReaderInterface
  • ProductRepositoryWriterInterface
  • ProductSettingsInterface
  • ProductSettingsRepositoryInterface
  • ProductSettingsRepositoryReaderInterface
  • ProductSettingsRepositoryWriterInterface
  • ProductWriteServiceInterface
  • QuantityUnitInterface
  • QuantityUnitReadServiceInterface
  • QuantityUnitRepositoryInterface
  • QuantityUnitStorageInterface
  • QuantityUnitWriteServiceInterface
  • QuickEditDocumentsInterface
  • QuickEditOverviewColumnsInterface
  • QuickEditOverviewTooltipsInterface
  • QuickEditProductGraduatedPricesReaderInterface
  • QuickEditProductGraduatedPricesRepositoryInterface
  • QuickEditProductPropertiesReaderInterface
  • QuickEditProductPropertiesRepositoryInterface
  • QuickEditProductPropertiesWriterInterface
  • QuickEditProductSpecialPricesReaderInterface
  • QuickEditProductSpecialPricesRepositoryInterface
  • QuickEditProductSpecialPricesWriterInterface
  • QuickEditPropertiesOverviewColumnsInterface
  • QuickEditPropertiesTooltipsInterface
  • QuickEditServiceFactoryInterface
  • QuickEditServiceInterface
  • QuickEditSpecialPricesOverviewColumnsInterface
  • QuickEditSpecialPriceTooltipsInterface
  • SerializerInterface
  • SharedShoppingCartDeleterInterface
  • SharedShoppingCartReaderInterface
  • SharedShoppingCartRepositoryInterface
  • SharedShoppingCartServiceInterface
  • SharedShoppingCartSettingsInterface
  • SharedShoppingCartWriterInterface
  • SlideImageAreaInterface
  • SlideImageAreaRepositoryDeleterInterface
  • SlideImageAreaRepositoryInterface
  • SlideImageAreaRepositoryReaderInterface
  • SlideImageAreaRepositoryWriterInterface
  • SlideImageInterface
  • SlideImagePathsSettingsInterface
  • SlideImageRepositoryDeleterInterface
  • SlideImageRepositoryInterface
  • SlideImageRepositoryReaderInterface
  • SlideImageRepositoryWriterInterface
  • SlideInterface
  • SliderAssignmentRepositoryInterface
  • SlideRepositoryDeleterInterface
  • SlideRepositoryInterface
  • SlideRepositoryReaderInterface
  • SlideRepositoryWriterInterface
  • SliderInterface
  • SliderReadServiceInterface
  • SliderRepositoryDeleterInterface
  • SliderRepositoryInterface
  • SliderRepositoryReaderInterface
  • SliderRepositoryWriterInterface
  • SliderWriteServiceInterface
  • StaticSeoUrlContentInterface
  • StaticSeoUrlContentRepositoryDeleterInterface
  • StaticSeoUrlContentRepositoryInterface
  • StaticSeoUrlContentRepositoryReaderInterface
  • StaticSeoUrlContentRepositoryWriterInterface
  • StaticSeoUrlInterface
  • StaticSeoUrlReadServiceInterface
  • StaticSeoUrlRepositoryDeleterInterface
  • StaticSeoUrlRepositoryInterface
  • StaticSeoUrlRepositoryReaderInterface
  • StaticSeoUrlRepositoryWriterInterface
  • StaticSeoUrlWriteServiceInterface
  • StatisticsServiceInterface
  • StoredCategoryInterface
  • StoredOrderItemAttributeInterface
  • StoredOrderItemInterface
  • StoredOrderTotalInterface
  • StoredProductAttributeInterface
  • StoredProductInterface
  • StringHelperInterface
  • UrlKeywordsRepairerInterface
  • UserConfigurationReaderInterface
  • UserConfigurationServiceInterface
  • UserConfigurationWriterInterface
  • VatNumberValidatorInterface
  • VersionInfoItemInterface
  • VPEInterface
  • VPEReadServiceInterface
  • VPERepositoryInterface
  • VPEStorageInterface
  • VPEWriteServiceInterface

Traits

  • ContentManagerContentNavigationTrait

Exceptions

  • AjaxException
  • AttachmentNotFoundException
  • EntityNotFoundException
  • FileNotFoundException
  • GeschaeftskundenversandProductException
  • GeschaeftskundenversandShipmentException
  • GeschaeftskundenversandShipmentInvalidExportTypeException
  • GeschaeftskundenversandShipmentInvalidTermsOfTradeException
  • GeschaeftskundenversandSoapAdapterCigCredentialsMissingException
  • GeschaeftskundenversandSoapAdapterException
  • GeschaeftskundenversandSoapAdapterServiceUnavailableException
  • HttpApiV2Exception
  • InvalidCustomerDataException
  • InvalidEkpFormatException
  • InvalidGKVAttendanceFormatException
  • InvalidGKVProductTypeException
  • MissingControllerNameException
  • OrderStatusIdExistsException
  • OrderStatusIdNotExistsException
  • OrderStatusNotFoundException
  • UnknownEnvironmentException

Functions

  • smarty_function_check_magna_execute
  • smarty_function_check_mailbeez_menu
  • smarty_function_get_sub_categories
  • smarty_function_gm_footer
  • smarty_function_gm_get_conf
  • smarty_function_gm_gmotion
  • smarty_function_gm_gprint
  • smarty_function_gm_menuboxes
  • smarty_function_html_shop_offline
  • smarty_function_is_filemanager_available
  • smarty_function_load_env_array
  • smarty_function_load_language_text
  • smarty_function_object_product_list
  • smarty_function_page_url
  • smarty_function_pre_black_container
  • smarty_modifier_gm_get_conf
  • smarty_modifier_gm_get_env_info
  • smarty_modifier_has_children
  • smarty_modifier_htmlentities_wrapper
  • smarty_modifier_shop_url
  • smarty_modifier_xtc_href_link
  • smarty_outputfilter_note
  • smarty_php_tag
  1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98  99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 
<?php
/* --------------------------------------------------------------
   FileManagerController.inc.php 2017-06-12
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2017 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------

   based on:
   (c) 2013 John Campbell (jcampbell1) - Simple PHP File Manager

   Released under the MIT License (MIT)

   Permission is hereby granted, free of charge, to any person obtaining a copy of
   this software and associated documentation files (the "Software"), to deal in
   the Software without restriction, including without limitation the rights to
   use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
   the Software, and to permit persons to whom the Software is furnished to do so,
   subject to the following conditions:
   
   The above copyright notice and this permission notice shall be included in all
   copies or substantial portions of the Software.
   
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
   FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   --------------------------------------------------------------
*/

MainFactory::load_class('AdminHttpViewController');

/**
 * Class FileManagerController
 *
 * @category System
 * @package  AdminHttpViewControllers
 */
class FileManagerController extends AdminHttpViewController
{
    /**
     * @var string
     */
    protected $defaultContent = 'product_images';
    
    /**
     * @var string $subDirectory
     */
    protected $subDirectory;
    
    /**
     * @var string $baseDirectory
     */
    protected $baseDirectory;
    
    /**
     * @var string $content
     */
    protected $content;
    
    /**
     * @var string $file
     */
    protected $file = '';
    
    /**
     * @var bool $allowDelete
     */
    protected $allowDelete = true; // Set to false to disable delete button and delete POST request.
    
    /**
     * @var bool $allowCreateFolder
     */
    protected $allowCreateFolder = true; // Set to false to disable folder creation
    
    /**
     * @var bool $allowUpload
     */
    protected $allowUpload = true; // Set to true to allow upload files
    
    /**
     * @var bool $allowDirectLink
     */
    protected $allowDirectLink = true; // Set to false to only allow downloads and not direct link
    
    /**
     * @var array $disallowedExtensions
     */
    protected $disallowedExtensions;  // must be an array
    
    /**
     * @var array $listingFileSuffixBlacklist
     */
    protected $listingFileSuffixBlacklist;
    
    /**
     * @var array $listingFilePrefixBlacklist
     */
    protected $listingFilePrefixBlacklist;
    
    /**
     * @var array $deleteBlackList
     */
    protected $deleteBlackList;
    
    /**
     * @var int $maxUploadSize
     */
    protected $maxUploadSize = 0;
    
    /**
     * @var array $infoMessages
     */
    protected $infoMessages = [];
    
    
    /**
     * Initializes the controller
     *
     * @param HttpContextInterface $httpContext
     */
    public function proceed(HttpContextInterface $httpContext)
    {
        $this->contentView->set_template_dir(DIR_FS_ADMIN . 'html/content/');
        
        parent::proceed($httpContext);
    }
    
    
    /**
     * @throws InvalidArgumentException
     *
     * @return AdminLayoutHttpControllerResponse
     */
    public function actionDefault()
    {
        $this->_init();
        
        $this->maxUploadSize = min($this->_asBytes(ini_get('post_max_size')),
            $this->_asBytes(ini_get('upload_max_filesize')));
        
        $languageTextManager = MainFactory::create('LanguageTextManager', 'file_manager', $_SESSION['languages_id']);
        $title               = new NonEmptyStringType($languageTextManager->get_text('HEADING_TITLE'));
        $template            = new ExistingFile(new NonEmptyStringType(DIR_FS_ADMIN
                                                                       . '/html/content/file_manager.html'));
        $data                = MainFactory::create('KeyValueCollection', [
            'baseDirectory'     => $this->baseDirectory,
            'subDirectory'      => $this->subDirectory,
            'content'           => $this->content,
            'file'              => $this->file,
            'maxUploadSize'     => $this->maxUploadSize,
            'allowUpload'       => $this->allowUpload,
            'allowDirectLink'   => $this->allowDirectLink,
            'allowCreateFolder' => $this->allowCreateFolder
        ]);
        $assets              = MainFactory::create('AssetCollection', [
            MainFactory::create('Asset', 'file_manager.lang.inc.php')
        ]);
        $contentNavigation   = MainFactory::create('ContentNavigationCollection', []);
        $contentNavigation->add(new StringType($languageTextManager->get_text('PRODUCT_IMAGES')),
            new StringType('admin.php?do=FileManager&content=product_images'),
            new BoolType($this->content === 'product_images'));
        $contentNavigation->add(new StringType($languageTextManager->get_text('MEDIA')),
            new StringType('admin.php?do=FileManager&content=media'), new BoolType($this->content === 'media'));
        $contentNavigation->add(new StringType($languageTextManager->get_text('DOWNLOAD')),
            new StringType('admin.php?do=FileManager&content=download'), new BoolType($this->content === 'download'));
        $contentNavigation->add(new StringType($languageTextManager->get_text('IMAGES')),
            new StringType('admin.php?do=FileManager&content=images'), new BoolType($this->content === 'images'));
        
        return MainFactory::create('AdminLayoutHttpControllerResponse', $title, $template, $data, $assets,
            $contentNavigation);
    }
    
    
    public function actionList()
    {
        $this->_init();
        
        $result    = [];
        $directory = $this->baseDirectory . $this->file . ($this->file !== '' ? '/' : '');
        if (is_dir($directory)) {
            $files = array_diff(scandir($directory), ['.', '..']);
            
            foreach ($files as $entry) {
                if ($entry !== basename(__FILE__) && !$this->_fileIsBlacklisted($entry)) {
                    $i    = $directory . $entry;
                    $stat = stat($i);
                    
                    $result[] = [
                        'mtime'         => $stat['mtime'],
                        'size'          => $stat['size'],
                        'name'          => basename($i),
                        'path'          => preg_replace('@^\./@', '', str_replace($this->baseDirectory, '', $i)),
                        'is_dir'        => is_dir($i),
                        'is_deleteable' => $this->allowDelete && !$this->_isOnDeleteBlacklist($i)
                                           && ((!is_dir($i) && is_writable($directory))
                                               || (is_dir($i) && is_writable($directory)
                                                   && $this->_isRecursivelyDeletable($i))),
                        'is_readable'   => is_readable($i),
                        'is_writable'   => is_writable($i),
                        'is_executable' => is_executable($i),
                        'info_message'  => $this->_getInfoMessage($i)
                    ];
                }
            }
        } else {
            http_response_code(412);
            
            return MainFactory::create('JsonHttpControllerResponse',
                ['error' => ['code' => 412, 'msg' => 'Not a Directory']]);
        }
        
        return MainFactory::create('JsonHttpControllerResponse',
            ['success' => true, 'is_writable' => is_writable($directory), 'results' => $result]);
    }
    
    
    public function actionDelete()
    {
        $this->_init();
        
        if ($this->allowDelete) {
            $this->file = $this->_getPostData('file');
            $this->_removeRecursively($this->baseDirectory . $this->file);
        } else {
            http_response_code(403);
            
            return MainFactory::create('JsonHttpControllerResponse',
                ['error' => ['code' => 403, 'msg' => 'Deletion is not allowed.']]);
        }
        
        return MainFactory::create('JsonHttpControllerResponse', ['success' => true]);
    }
    
    
    public function actionMkdir()
    {
        $this->_init();
        
        if ($this->allowCreateFolder) {
            // filter some special chars for windows compatibility: " * : < > ? / \ |
            $this->postDataArray['name'] = str_replace(['"', '*', ':', '<', '>', '?', '/', '\\', '|'], '', $this->postDataArray['name']);
            // also filter §, because this seems to create some strange errors ...
            $this->postDataArray['name'] = str_replace('§', '', $this->postDataArray['name']);
            chdir($this->baseDirectory . $this->file);
            $oldMask = umask(0);
            if (!@mkdir($this->postDataArray['name'], 0777) && !is_dir($this->postDataArray['name']) && strlen($this->postDataArray['name']) > 0) {
                umask($oldMask);
                http_response_code(500);
                
                return MainFactory::create('JsonHttpControllerResponse',
                    ['error' => ['code' => 500, 'msg' => 'The directory could not be created.']]);
            }
            umask($oldMask);
            
            http_response_code(201);
            
            return MainFactory::create('JsonHttpControllerResponse', ['success' => true]);
        }
        
        return MainFactory::create('JsonHttpControllerResponse', ['success' => true]);
    }
    
    
    public function actionUpload()
    {
        $this->_init();
        
        if ($this->allowUpload) {
            foreach ($this->disallowedExtensions as $extension) {
                if (preg_match(sprintf('/\.%s$/', preg_quote($extension)), $_FILES['file_data']['name'])) {
                    http_response_code(403);
                    
                    return MainFactory::create('JsonHttpControllerResponse',
                        ['error' => ['code' => 403, 'msg' => 'Files of this type are not allowed.']]);
                }
            }
            
            $dir       = $this->_getQueryParameter('directory');
            $targetDir = $this->baseDirectory . '/' . (!empty($dir) ? $dir . '/' : '');
            
            if (!@move_uploaded_file($_FILES['file_data']['tmp_name'], $targetDir . $_FILES['file_data']['name'])
                && !is_file($targetDir . $_FILES['file_data']['name'])
            ) {
                http_response_code(500);
                
                return MainFactory::create('JsonHttpControllerResponse',
                    ['error' => ['code' => 500, 'msg' => 'The file could not be uploaded.']]);
            }
            
            http_response_code(201);
            
            return MainFactory::create('JsonHttpControllerResponse', ['success' => true]);
        }
        
        return MainFactory::create('JsonHttpControllerResponse', ['success' => true]);
    }
    
    
    public function actionDownload()
    {
        $this->_init();
        
        $file     = $this->baseDirectory . $this->file;
        $filename = basename($this->file);
        header('Content-Type: ' . mime_content_type($file));
        header('Content-Length: ' . filesize($file));
        header(sprintf('Content-Disposition: attachment; filename=%s',
            strpos('MSIE', $_SERVER['HTTP_REFERER']) ? rawurlencode($filename) : '"' . $filename . '"'));
        ob_flush();
        readfile($file);
        return MainFactory::create('HttpControllerResponse', '');
    }
    
    
    public function actionThumb()
    {
        $this->_init();
        
        $file = $this->baseDirectory . $this->file;
        
        // Get mime type info
        $mime = mime_content_type($file);
        
        // Return thumbnail
        if (strpos($mime, 'image') === 0) {
            return MainFactory::create('HttpControllerResponse', $this->_generateThumbnail($file, 32, 32));
        }
    }
    
    
    protected function _init()
    {
        $this->_initDisallowedExtensions();
        $this->_initListingFileSuffixBlacklist();
        $this->_initListingFilePrefixBlacklist();
        $this->_initDeleteBlackList();
        $this->_initInfoMessages();
        
        if (array_key_exists('content', $this->queryParametersArray)) {
            $this->content = $this->queryParametersArray['content'];
        } else {
            $this->content = $this->defaultContent;
        }
        
        switch ($this->content) {
            case 'product_images':
                $this->subDirectory = 'images/product_images/';
                break;
            case 'images':
                $this->subDirectory = 'images/';
                break;
            case 'media':
                $this->subDirectory = 'media/';
                break;
            case 'download':
                $this->subDirectory = 'download/';
                break;
        }
        
        $this->baseDirectory = DIR_FS_CATALOG . $this->subDirectory;
        
        if (array_key_exists('file', $this->queryParametersArray) && $this->queryParametersArray['file'] !== '') {
            $this->file = urldecode($this->queryParametersArray['file']);
        }
    }
    
    
    protected function _initDisallowedExtensions()
    {
        $this->disallowedExtensions = ['php', 'htaccess'];
    }
    
    
    protected function _initListingFileSuffixBlacklist()
    {
        $this->listingFileSuffixBlacklist = ['.php', '.htaccess', 'index.html'];
    }
    
    
    protected function _initListingFilePrefixBlacklist()
    {
        $this->listingFilePrefixBlacklist = ['secure_token_', 'product_images'];
    }
    
    
    protected function _initDeleteBlackList()
    {
        $this->deleteBlackList = [
            'images/product_images/attribute_images',
            'images/product_images/gallery_images',
            'images/product_images/gm_gmotion_images',
            'images/product_images/info_images',
            'images/product_images/original_images',
            'images/product_images/popup_images',
            'images/product_images/properties_combis_images',
            'images/product_images/thumbnail_images'
        ];
    }
    
    
    protected function _initInfoMessages()
    {
        $this->infoMessages = [
            'images/product_images/original_images' => 'INFO_ORIGINAL_IMAGES'
        ];
    }
    
    
    protected function _isRecursivelyDeletable($topDir)
    {
        $stack = [$topDir];
        while ($dir = array_pop($stack)) {
            if (!is_readable($dir) || !is_writable($dir)) {
                return false;
            }
            $files = array_diff(scandir($dir), ['.', '..']);
            foreach ($files as $file) {
                if (is_dir($file)) {
                    $stack[] = $dir . '/' . $file;
                }
            }
        }
        
        return true;
    }
    
    
    protected function _removeRecursively($dir)
    {
        if (is_dir($dir)) {
            $files = array_diff(scandir($dir), ['.', '..']);
            foreach ($files as $file) {
                $this->_removeRecursively($dir . '/' . $file);
            }
            rmdir($dir);
        } else {
            unlink($dir);
        }
    }
    
    
    protected function _asBytes($ini_v)
    {
        $ini_v = trim($ini_v);
        $s     = ['g' => 1 << 30, 'm' => 1 << 20, 'k' => 1 << 10];
        
        return (int)$ini_v * ($s[strtolower(substr($ini_v, -1))] ? : 1);
    }
    
    
    protected function _fileIsBlacklisted($filename)
    {
        $filenameLength = strlen($filename);
        
        foreach ($this->listingFilePrefixBlacklist as $blacklistItem) {
            $blacklistItemLength = strlen($blacklistItem);
            
            if ($blacklistItemLength <= $filenameLength && strpos($filename, $blacklistItem) === 0) {
                return true;
            }
        }
        
        foreach ($this->listingFileSuffixBlacklist as $blacklistItem) {
            $blacklistItemLength = strlen($blacklistItem);
            
            if ($blacklistItemLength <= $filenameLength
                && substr_compare($filename, $blacklistItem, $blacklistItemLength - $filenameLength,
                    $filenameLength) === 0
            ) {
                return true;
            }
        }
        
        return false;
    }
    
    
    protected function _isOnDeleteBlacklist($file)
    {
        foreach ($this->deleteBlackList as $blackListItem) {
            if ($file === DIR_FS_CATALOG . $blackListItem) {
                return true;
            }
        }
        
        return false;
    }
    
    
    protected function _getInfoMessage($file)
    {
        $relativeFilePath = substr($file, strlen(DIR_FS_CATALOG));
        if(array_key_exists($relativeFilePath, $this->infoMessages))
        {
            return $this->infoMessages[$relativeFilePath];
        }
        
        return '';
    }
    
    
    /**
     * Generates thumbnails for images
     *
     * @param     $img
     * @param     $width
     * @param     $height
     *
     * @return \Imagick
     */
    protected function _generateThumbnail($img, $width, $height)
    {
        $data        = file_get_contents($img);
        $image       = imagecreatefromstring($data);
        $imageSize   = getimagesize($img);
        $imageWidth  = $imageSize[0];
        $imageHeight = $imageSize[1];
        $imageType   = $imageSize[2];
        $thumbWidth  = $imageWidth;
        $thumbHeight = $imageHeight;
        
        if ($thumbWidth > $width) {
            $factor = $width / $thumbWidth;
            $thumbWidth *= $factor;
            $thumbHeight *= $factor;
        }
        
        if ($thumbHeight > $height) {
            $factor = $height / $thumbHeight;
            $thumbWidth *= $factor;
            $thumbHeight *= $factor;
        }
        
        $thumb = imagecreatetruecolor($thumbWidth, $thumbHeight);
        
        imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumbWidth, $thumbHeight, $imageWidth, $imageHeight);
        
        header('Content-Type: image/png');
        imagepng($thumb);
        imagedestroy($thumb);
    }
}
API documentation generated by ApiGen