- Summary
-
Packages
- AddonValue
- AdminAccess
- AdminHttpViewControllers
- Agreement
- ApiV2Controllers
- Authentication
- Category
- Customer
- CustomerGroup
- Extensions
- Geschaeftskundenversand
- Http
- HttpViewControllers
- InfoBox
- Invoice
- Loaders
- Manufacturer
- Modules
- NewsletterSubscription
- None
- Order
- OrderStatus
- PackingSlip
- PersonalData
- Precheck
- Product
- ProductModule
- QuantityUnit
- QuickEdit
- Review
- Shared
- SharedShoppingCart
- ShoppingCart
- Slider
- Smarty
- StaticSeoUrl
- StaticSeoUrls
- Statistics
- UserConfiguration
- VersionInfo
- VPE
- Withdrawal
-
Classes
- AbstractAddonValueServiceFactory
- AbstractAddonValueStorage
- AbstractApiV2Controller
- AbstractCategoryServiceFactory
- AbstractCollection
- AbstractCreateAccountProcess
- AbstractCustomerFactory
- AbstractCustomerServiceFactory
- AbstractFileStorage
- AbstractHttpContextFactory
- AbstractHttpViewControllerRegistryFactory
- AbstractImagesApiV2Controller
- AbstractInvoiceServiceFactory
- AbstractJsonSerializer
- AbstractModuleCenterModule
- AbstractModuleCenterModuleController
- AbstractOrderServiceFactory
- AbstractProductAttributeServiceFactory
- AbstractProductServiceFactory
- AbstractSliderServiceFactory
- AbstractStaticSeoUrlServiceFactory
- AbstractVersionInfoItem
- AbstractVersionInfoReader
- ActiveRecordParcelTrackingCode
- AddonValueService
- AddonValueServiceFactory
- AddonValueStorageFactory
- AddressBlock
- AddressBookService
- AddressClass
- AddressesApiV2Controller
- AddressFormatProvider
- AddressFormatsApiV2Controller
- AddressJsonSerializer
- AdminAccessAjaxController
- AdminAccessController
- AdminAccessGroup
- AdminAccessGroupCollection
- AdminAccessGroupDeleter
- AdminAccessGroupFactory
- AdminAccessGroupItem
- AdminAccessGroupItemCollection
- AdminAccessGroupManager
- AdminAccessGroupReader
- AdminAccessGroupWriter
- AdminAccessPermission
- AdminAccessPermissionCollection
- AdminAccessPermissionDeleter
- AdminAccessPermissionFactory
- AdminAccessPermissionManager
- AdminAccessPermissionReader
- AdminAccessPermissionWriter
- AdminAccessRole
- AdminAccessRoleCollection
- AdminAccessRoleDeleter
- AdminAccessRoleFactory
- AdminAccessRoleManager
- AdminAccessRoleReader
- AdminAccessRoleWriter
- AdminAccessService
- AdminAccessServiceFactory
- AdminAccessSettings
- AdminAccessUser
- AdminAccessUserDeleter
- AdminAccessUserFactory
- AdminAccessUserManager
- AdminAccessUserReader
- AdminAccessUserWriter
- AdminFavoritesAjaxController
- AdminHttpViewController
- AdminInfoBoxAjaxController
- AdminLayoutHttpControllerResponse
- AdminPageHttpControllerResponse
- AfterbuyAjaxController
- AfterbuyModuleCenterModule
- AfterbuyModuleCenterModuleController
- Agreement
- AgreementAccessRepository
- AgreementCollection
- AgreementCustomer
- AgreementCustomerEmail
- AgreementDeleter
- AgreementFactory
- AgreementReader
- AgreementReadService
- AgreementRepository
- AgreementServiceFactory
- AgreementStoreHelper
- AgreementWriter
- AgreementWriteService
- AmazonPayConfigurationController
- ApiV2Authenticator
- Asset
- AssetCollection
- AttachmentCollection
- AttachmentName
- AttachmentPath
- AttachmentsApiV2Controller
- AttachmentsHandler
- AuthFactory
- AuthService
- AuthSettings
- AuthStrategyCollection
- BoolType
- BrickfoxModuleCenterModule
- BrickfoxModuleCenterModuleController
- CacheApiV2Controller
- 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
- CustomerConfigurationProvider
- CustomerConfigurationSettings
- CustomerCountry
- CustomerCountryIso2
- CustomerCountryIso3
- CustomerCountryName
- CustomerCountryReader
- CustomerCountryRepository
- CustomerCountryZone
- CustomerCountryZoneIsoCode
- CustomerCountryZoneName
- CustomerCountryZoneReader
- CustomerCountryZoneRepository
- CustomerDateOfBirth
- CustomerDeleter
- CustomerDisplaySettings
- CustomerEmail
- CustomerErrorMessageSettings
- CustomerFactory
- CustomerFirstname
- CustomerGender
- CustomerGroup
- CustomerGroupAccessRepository
- CustomerGroupAjaxController
- CustomerGroupCollection
- CustomerGroupCollectionSerializer
- CustomerGroupConfigurations
- CustomerGroupConfigurationsSerializer
- CustomerGroupController
- CustomerGroupDeleter
- CustomerGroupFactory
- CustomerGroupReader
- CustomerGroupReadService
- CustomerGroupRepository
- CustomerGroupsApiV2Controller
- CustomerGroupSerializer
- CustomerGroupServiceFactory
- CustomerGroupSettings
- CustomerGroupSettingsSerializer
- CustomerGroupWriter
- CustomerGroupWriteService
- CustomerHashedPassword
- CustomerHouseNumber
- CustomerInputToCollectionTransformer
- CustomerInputValidator
- CustomerInputValidatorSettings
- CustomerJsonSerializer
- CustomerLastname
- CustomerLoginController
- CustomerMaxLengthSettings
- CustomerMemo
- CustomerMemoCollection
- CustomerMinLengthSettings
- 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
- EmailAddress
- EmailAttachment
- EmailCollection
- EmailConfigurationProvider
- EmailContact
- EmailContent
- EmailDeleter
- EmailFactory
- EmailJsonSerializer
- EmailMailerSettings
- EmailParser
- EmailReader
- EmailRepository
- EmailsApiV2Controller
- EmailsController
- EmailService
- EmailStringType
- EmailSubject
- EmailWriter
- EmbeddedModuleController
- EmptyCurrencyCode
- EmptyDateTime
- EmptyLanguageCode
- EmptyProductImage
- EnvCategoryServiceSettings
- EnvInvoiceServiceSettings
- EnvironmentClassFinderSettings
- EnvironmentHttpContextFactory
- EnvironmentHttpViewControllerRegistryFactory
- EnvPackingSlipServiceSettings
- EnvProductImageFileStorageSettings
- EnvSlideImageFileStorageSettings
- ExistingDirectory
- ExistingFile
- ExistingFileCollection
- ExtendedSimpleXMLElement
- ExtraContentController
- FileDownloadHttpControllerResponse
- FileDownloadInformation
- FileManagerController
- FilenameStringType
- FilesystemHelper
- FilterController
- FindologicModuleCenterModule
- FindologicModuleCenterModuleController
- FontAwesomeIconClassProvider
- FrontendFilenamesProvider
- GeschaeftskundenversandConfigurationStorage
- GeschaeftskundenversandController
- GeschaeftskundenversandLogger
- GeschaeftskundenversandModuleCenterModule
- GeschaeftskundenversandModuleCenterModuleController
- GeschaeftskundenversandProduct
- GeschaeftskundenversandShipment
- GeschaeftskundenversandSoapAdapter
- GoogleAdwordConversionModuleCenterModule
- GoogleAdwordConversionModuleCenterModuleController
- GXCoreLoader
- GXCoreLoaderSettings
- GXEngineOrder
- GXEngineProduct
- GXEngineQuantityUnit
- GXEngineShoppingCart
- GXModuleCenterModule
- GXModuleCenterModuleButtonActionsAjaxController
- GXModuleCenterModuleController
- GXModuleConfigurationStorage
- GXModuleController
- GXParcelTrackingCode
- GXParcelTrackingCodeWriter
- 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
- LanguageCode
- LanguageHelper
- LanguageProvider
- LawsController
- LegacyProductImageProcessing
- LegalTextType
- LegalTextVersionHelper
- LettrModuleCenterModule
- LettrModuleCenterModuleController
- LiveSearchController
- MagnalisterModuleCenterModule
- MagnalisterModuleCenterModuleController
- MailbeezModuleCenterModule
- MailbeezModuleCenterModuleController
- MailerAdapter
- Manufacturer
- ManufacturerAjaxController
- ManufacturerCollection
- ManufacturerController
- ManufacturerDeleter
- ManufacturerFactory
- ManufacturerReader
- ManufacturerReadService
- ManufacturerRepository
- ManufacturersApiV2Controller
- ManufacturerServiceFactory
- ManufacturerWriter
- ManufacturerWriteService
- MaxFileSizeController
- Md5Strategy
- MediafinanzModuleCenterModule
- MediafinanzModuleCenterModuleController
- MinimalNewsletterSubscriptionService
- MinimalShoppingCartService
- ModuleCenterController
- ModuleCenterModuleCollection
- ModuleTitleProvider
- NewAttributesController
- NewsletterLinkModuleCenterModule
- NewsletterLinkModuleCenterModuleController
- NewsletterSubscription
- NewsletterSubscriptionServiceFactory
- NonEmptyStringType
- OrderActions
- OrderAddonValueStorage
- OrderAddressBlock
- OrderConfigurationProvider
- OrderFactory
- OrderItem
- OrderItemAddonValueStorage
- OrderItemAttribute
- OrderItemAttributeCollection
- OrderItemAttributeFactory
- OrderItemAttributeRepository
- OrderItemAttributeRepositoryDeleter
- OrderItemAttributeRepositoryFactory
- OrderItemAttributeRepositoryReader
- OrderItemAttributeRepositoryWriter
- OrderItemCollection
- OrderItemDownloadInformation
- OrderItemDownloadInformationCollection
- OrderItemFactory
- OrderItemGXCustomizerData
- OrderItemGXCustomizerDataCollection
- OrderItemProperty
- OrderItemPropertyFactory
- OrderItemPropertyRepository
- OrderItemPropertyRepositoryDeleter
- OrderItemPropertyRepositoryReader
- OrderItemPropertyRepositoryWriter
- OrderItemRepository
- OrderItemRepositoryDeleter
- OrderItemRepositoryReader
- OrderItemRepositoryWriter
- OrderJsonSerializer
- OrderListGenerator
- OrderListItem
- OrderListItemCollection
- OrderListItemJsonSerializer
- OrderObjectService
- OrderParcelTrackingCode
- OrderPaymentType
- OrderReadService
- OrderRepository
- OrderRepositoryDeleter
- OrderRepositoryReader
- OrderRepositoryWriter
- OrdersApiV2Controller
- OrderServiceFactory
- OrderServiceSettings
- OrderShippingType
- OrdersHistoryApiV2Controller
- OrdersItemsApiV2Controller
- OrdersItemsAttributesApiV2Controller
- OrdersModalsAjaxController
- OrdersOverviewAjaxController
- OrdersOverviewColumns
- OrdersOverviewController
- OrdersOverviewTooltips
- OrderStatus
- OrderStatusAjaxController
- 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
- PackingSlip
- PackingSlipCollection
- PackingSlipDeleter
- PackingSlipFactory
- PackingSlipReader
- PackingSlipRepository
- PackingSlipService
- PackingSlipServiceFactory
- ParcelShopFinder
- ParcelshopfinderController
- ParcelShopFinderLogger
- ParcelshopfinderModuleCenterModule
- ParcelshopfinderModuleCenterModuleController
- ParcelTrackingCodeComment
- ParcelTrackingCodeDeleter
- ParcelTrackingCodeDeleteService
- ParcelTrackingCodeFactory
- ParcelTrackingCodeFinder
- ParcelTrackingCodeId
- ParcelTrackingCodeLanguageId
- ParcelTrackingCodeOrderId
- ParcelTrackingCodeRepository
- ParcelTrackingCodeServiceId
- ParcelTrackingCodeServiceName
- ParcelTrackingCodeUrl
- PasswordEncryptionSettings
- PasswordHashStrategy
- PathType
- PaymentTitleProvider
- PayOneModuleCenterModuleController
- PayPalConfigurationController
- PayPalController
- PersonalDataController
- PersonalDataInvoiceFileStorage
- PersonalDataPackingSlipFileStorage
- PersonalDataSelection
- PersonalDataSelectionItem
- PersonalDataService
- PersonalDataServiceFactory
- PersonalDataServiceSettings
- PersonalDataXmlSerializer
- 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
- ProductReviewsApiV2Controller
- 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
- Review
- ReviewAccessRepository
- ReviewCollection
- ReviewCustomer
- ReviewDeleter
- ReviewFactory
- ReviewJsonSerializer
- ReviewReader
- ReviewReadService
- ReviewRepository
- ReviewsApiV2Controller
- ReviewServiceFactory
- ReviewWriter
- ReviewWriteService
- SessionTimeoutAjaxController
- SharedShoppingCart
- SharedShoppingCartCollection
- SharedShoppingCartConfigurationController
- SharedShoppingCartController
- SharedShoppingCartDeleter
- SharedShoppingCartModuleCenterModule
- SharedShoppingCartModuleCenterModuleController
- SharedShoppingCartReader
- SharedShoppingCartRepository
- SharedShoppingCartService
- SharedShoppingCartSettings
- SharedShoppingCartWriter
- ShipcloudController
- ShipcloudModuleCenterModule
- ShipcloudModuleCenterModuleController
- ShipcloudWebhookController
- ShippingPaymentMatrixAjaxController
- ShippingTitleProvider
- ShopInformationApiV2Controller
- ShopKeyController
- ShoppingCartCollection
- ShoppingCartServiceFactory
- 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
- TrackingCodeApiV2Controller
- 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
- Withdrawal
- WithdrawalAccessRepository
- WithdrawalCollection
- WithdrawalDeleter
- WithdrawalFactory
- WithdrawalJsonSerializer
- WithdrawalOrder
- WithdrawalReader
- WithdrawalReadService
- WithdrawalRepository
- WithdrawalsApiV2Controller
- WithdrawalServiceFactory
- WithdrawalWriter
- WithdrawalWriteService
- WritableDirectory
- WritableFile
- YategoModuleCenterModule
- YategoModuleCenterModuleController
- YoochooseModuleCenterModule
- YoochooseModuleCenterModuleController
- ZoneJsonSerializer
- ZonesApiV2Controller
- ZonesController
-
Interfaces
- AddonValueContainerInterface
- AddonValueServiceInterface
- AddonValueStorageFactoryInterface
- AddressBlockInterface
- AddressBookServiceInterface
- AddressClassInterface
- AddressFormatProviderInterface
- AdminAccessGroupDeleterInterface
- AdminAccessGroupFactoryInterface
- AdminAccessGroupInterface
- AdminAccessGroupItemInterface
- AdminAccessGroupManagerInterface
- AdminAccessGroupReaderInterface
- AdminAccessGroupWriterInterface
- AdminAccessPermissionDeleterInterface
- AdminAccessPermissionFactoryInterface
- AdminAccessPermissionInterface
- AdminAccessPermissionManagerInterface
- AdminAccessPermissionPersistenceInterface
- AdminAccessPermissionPresentationInterface
- AdminAccessPermissionReaderInterface
- AdminAccessPermissionWriterInterface
- AdminAccessRoleDeleterInterface
- AdminAccessRoleFactoryInterface
- AdminAccessRoleInterface
- AdminAccessRoleManagerInterface
- AdminAccessRoleReaderInterface
- AdminAccessRoleWriterInterface
- AdminAccessServiceFactoryInterface
- AdminAccessServiceInterface
- AdminAccessSettingsInterface
- AdminAccessUserDeleterInterface
- AdminAccessUserFactoryInterface
- AdminAccessUserInterface
- AdminAccessUserManagerInterface
- AdminAccessUserReaderInterface
- AdminAccessUserWriterInterface
- AdminStatusOnlyInterface
- AgreementAccessRepositoryInterface
- AgreementCustomerInterface
- AgreementDeleterInterface
- AgreementInterface
- AgreementReaderInterface
- AgreementReadServiceInterface
- AgreementRepositoryInterface
- AgreementWriterInterface
- AgreementWriteServiceInterface
- 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
- NewsletterSubscriptionInterface
- NewsletterSubscriptionServiceFactoryInterface
- NewsletterSubscriptionServiceInterface
- 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
- PackingSlipDeleterInterface
- PackingSlipFactoryInterface
- PackingSlipInterface
- PackingSlipReaderInterface
- PackingSlipRepositoryInterface
- PackingSlipServiceInterface
- PersonalDataInvoiceFileStorageInterface
- PersonalDataPackingSlipFileStorageInterface
- PersonalDataServiceFactoryInterface
- PersonalDataServiceInterface
- PersonalDataServiceSettingsInterface
- 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
- ReviewAccessRepositoryInterface
- ReviewCustomerInterface
- ReviewDeleterInterface
- ReviewInterface
- ReviewReaderInterface
- ReviewReadServiceInterface
- ReviewRepositoryInterface
- ReviewWriterInterface
- ReviewWriteServiceInterface
- SerializerInterface
- SharedShoppingCartDeleterInterface
- SharedShoppingCartInterface
- SharedShoppingCartReaderInterface
- SharedShoppingCartRepositoryInterface
- SharedShoppingCartServiceInterface
- SharedShoppingCartSettingsInterface
- SharedShoppingCartWriterInterface
- ShoppingCartInterface
- ShoppingCartServiceFactoryInterface
- ShoppingCartServiceInterface
- 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
- WithdrawalAccessRepositoryInterface
- WithdrawalDeleterInterface
- WithdrawalInterface
- WithdrawalOrderInterface
- WithdrawalReaderInterface
- WithdrawalReadServiceInterface
- WithdrawalRepositoryInterface
- WithdrawalWriterInterface
- WithdrawalWriteServiceInterface
- Traits
-
Exceptions
- AjaxException
- AttachmentNotFoundException
- CountryZoneNotFoundException
- DirectoryCreationFailedException
- EntityNotFoundException
- FileNotFoundException
- GeschaeftskundenversandProductException
- GeschaeftskundenversandShipmentException
- GeschaeftskundenversandShipmentInvalidExportTypeException
- GeschaeftskundenversandShipmentInvalidTermsOfTradeException
- GeschaeftskundenversandSoapAdapterCigCredentialsMissingException
- GeschaeftskundenversandSoapAdapterException
- GeschaeftskundenversandSoapAdapterServiceUnavailableException
- GroupItemNotFoundInCollectionException
- GroupNotFoundException
- GroupNotFoundInCollectionException
- HttpApiV2Exception
- InvalidCustomerDataException
- InvalidEkpFormatException
- InvalidGKVAttendanceFormatException
- InvalidGKVProductTypeException
- MissingControllerNameException
- OrderStatusIdExistsException
- OrderStatusIdNotExistsException
- OrderStatusNotFoundException
- ProtectedGroupException
- ProtectedRoleException
- RoleNotFoundException
- RoleNotFoundInCollectionException
- ShipcloudWebhookException
- UnknownEnvironmentException
- UserNotFoundException
-
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
<?php
/* --------------------------------------------------------------
ManufacturersApiV2Controller.inc.php 2018-01-23
Gambio GmbH
http://www.gambio.de
Copyright (c) 2018 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
class ManufacturersApiV2Controller extends HttpApiV2Controller
{
/**
* @var \ManufacturerReadServiceInterface
*/
protected $readService;
/**
* @var \ManufacturerWriteServiceInterface
*/
protected $writeService;
/**
* Initializes the manufacturers api controller.
*/
protected function __initialize()
{
$this->readService = StaticGXCoreLoader::getService('ManufacturerRead');
$this->writeService = StaticGXCoreLoader::getService('ManufacturerWrite');
}
/**
* @api {get} /manufacturers/:id Get manufacturers
* @apiVersion 2.5.0
* @apiName GetManufacturers
* @apiGroup Manufacturers
*
* @apiDescription
* Get multiple or a single manufacturers record through the GET method
*
* @apiExample {curl} Get All Manufacturers records
* curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/manufacturers
*
* @apiExample {curl} Get Manufacturers record With ID = 982
* curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/manufacturers/982
*
* @apiError 400-BadRequest Manufacturers data were not provided or manufacturers record ID was not provided
* or is invalid.
*
* @apiErrorExample Error-Response (Missing or invalid ID)
* HTTP/1.1 400 Bad Request
* {
* "code": 400,
* "status": "error",
* "message": "Manufacturers record ID was not provided or is invalid."
* }
*
* @apiError 404-NotFound Manufacturers record could not be found.
*
* @apiErrorExample Error-Response (Manufacturers Not Found)
* HTTP/1.1 404 Not Found
* {
* "code": 404,
* "status": "error",
* "message": "Manufacturers record could not be found."
* }
*/
public function get()
{
if(isset($this->uri[1]) && is_numeric($this->uri[1]))
{
try
{
$manufacturer = $this->readService->getById(new IdType((int)$this->uri[1]));
return $this->_writeResponse($this->_serializeManufacturer($manufacturer));
}
catch(EntityNotFoundException $e)
{
throw new HttpApiV2Exception($e->getMessage(), 404, $e);
}
}
if(isset($this->uri[1]) && !is_numeric($this->uri[1]))
{
throw new HttpApiV2Exception('Manufacturer record is was not provided', 400);
}
return $this->_writeResponse($this->_serializeManufacturerCollection($this->readService->getAll()));
}
/**
* @api {post} /manufacturers Create Manufacturers
* @apiVersion 2.6.0
* @apiName CreateManufacturers
* @apiGroup Manufacturers
*
* @apiDescription
* This method enables the creation of a new Manufacturers into the system.
*
* @apiParamExample {json} Manufacturers entity
* {
* "name": "Breitling",
* "image": "manufacturers/breitling-logo.png",
* "urls": {
* "EN": "https://breitling.com",
* "DE": "https://breitling.de"
* }
* }
*
* @apiParam {String} name Name of manufacturer.
* @apiParam {String} image Path to manufacturers image.
* @apiParam {Object} urls Object with language code as key and the language specific url as value.
*
* @apiSuccess (201) Request-Body If successful, this method returns the complete manufacturers resource
* in the response body.
*
* @apiSuccessExample {json} Success-Response
* {
* "id": 2,
* "name": "Breitling",
* "image": "manufacturers/breitling-logo.png",
* "dateAdded": "2017-09-29 13:42:46",
* "lastModified": "2017-09-29 13:42:46",
* "urls": {
* "EN": "https://breitling.com",
* "DE": "https://breitling.de"
* }
* }
*
* @apiError 400-BadRequest The body of the request was empty.
* @apiErrorExample Error-Response
* HTTP/1.1 400 Bad Request
* {
* "code": 400,
* "status": "error",
* "message": "Manufacturers data were not provided."
* }
*/
public function post()
{
$manufacturer = $this->_deserializeManufacturer($this->api->request->getBody());
$this->writeService->save($manufacturer);
$this->_writeResponse($this->_serializeManufacturer($manufacturer));
}
/**
* @api {patch} /manufacturers/:id Updates Manufacturers
* @apiVersion 2.6.0
* @apiName UpdateManufacturers
* @apiGroup Manufacturers
*
* @apiDescription
* Use this method if you want to update an existing manufacturers record.
*
* @apiParamExample {json} Manufacturers entity
* {
* "name": "Breitling",
* "image": "manufacturers/breitling-logo.png",
* "urls": {
* "EN": "https://breitling.com",
* "DE": "https://breitling.de"
* }
* }
*
* @apiParam {String} name Name of manufacturer.
* @apiParam {String} image Path to manufacturers image.
* @apiParam {Object} urls Object with language code as key and the language specific url as value.
*
* @apiSuccess (200) Request-Body If successful, this method returns the complete manufacturers resource
* in the response body.
*
* @apiSuccessExample {json} Success-Response
* {
* "id": 2,
* "name": "Breitling",
* "image": "manufacturers/breitling-logo.png",
* "dateAdded": "2017-09-29 13:42:46",
* "lastModified": "2017-09-29 13:42:46",
* "urls": {
* "EN": "https://breitling.com",
* "DE": "https://breitling.de"
* }
* }
*
* @apiError 400-BadRequest Manufacturers data were not provided or manufacturers record ID was not provided
* or is invalid.
*
* @apiErrorExample Error-Response (Empty request body)
* HTTP/1.1 400 Bad Request
* {
* "code": 400,
* "status": "error",
* "message": "Manufacturers data were not provided."
* }
*
* @apiErrorExample Error-Response (Missing or invalid ID)
* HTTP/1.1 400 Bad Request
* {
* "code": 400,
* "status": "error",
* "message": "Manufacturers record ID was not provided or is invalid."
* }
*
* @apiError 404-NotFoundRequest Manufacturers data were not provided or manufacturers record ID was not
* provided or is invalid.
*
* @apiErrorExample Error-Response (Entity not found)
* HTTP/1.1 400 Bad Request
* {
* "code": 404,
* "status": "error",
* "message": "Manufacturer entity was not found with provided id [ID]"
* }
*/
public function patch()
{
if(!isset($this->uri[1]) || !is_numeric($this->uri[1]))
{
throw new HttpApiV2Exception('Manufacturer record ID was not provided or is invalid in the Request-URI');
}
$requestBody = $this->api->request->getBody();
if(empty($requestBody))
{
throw new HttpApiV2Exception('Manufacturer data were not provided.', 400);
}
try
{
$manufacturer = $this->_deserializeManufacturer($requestBody, $this->uri[1]);
$this->writeService->save($manufacturer);
$this->_writeResponse($this->_serializeManufacturer($manufacturer));
}
catch(EntityNotFoundException $e)
{
throw new HttpApiV2Exception($e->getMessage(), 404, $e);
}
}
/**
* @api {delete} /manufacturers/:id Delete Manufacturers
* @apiVersion 2.5.0
* @apiName DeleteManufacturers
* @apiGroup Manufacturers
*
* @apiDescription
* Removes a manufacturers record from the system. This method will always return success
* even if the manufacturers does not exist (due to internal ManufacturersWriteService architecture
* decisions, which strive to avoid unnecessary failures).
*
* @apiExample {curl} Delete Manufacturers with ID = 84
* curl -X DELETE --user admin@shop.de:12345 http://shop.de/api.php/v2/manufacturers/84
*
* @apiSuccessExample {json} Success-Response
* {
* "code": 200,
* "status": "success",
* "action": "delete",
* "manufacturersId": 84
* }
*/
public function delete()
{
if(!isset($this->uri[1]) || !is_numeric($this->uri[1]))
{
throw new HttpApiV2Exception('Manufacturer record ID was not provided or is invalid in the Request-URI');
}
try
{
$manufacturer = $this->readService->getById(new IdType($this->uri[1]));
$this->writeService->delete($manufacturer);
}
catch(EntityNotFoundException $e)
{
}
$this->_writeResponse([
'code' => 200,
'status' => 'success',
'action' => 'delete',
'manufacturerId' => $this->uri[1]
]);
}
/**
* Serializes manufacturer entities.
*
* @param \ManufacturerInterface $manufacturer Manufacturer entity to be serialized.
*
* @return array Serialized manufacturer array.
*/
protected function _serializeManufacturer(ManufacturerInterface $manufacturer)
{
return [
'id' => $manufacturer->getId(),
'name' => $manufacturer->getName(),
'image' => $manufacturer->getImage(),
'dateAdded' => $manufacturer->getDateAdded()->format('Y-m-d H:i:s'),
'lastModified' => $manufacturer->getLastModified()->format('Y-m-d H:i:s'),
'urls' => $manufacturer->getUrls(),
];
}
/**
* Deserialize manufacturer entities.
*
* @param string $manufacturerJson Manufacturer entity as json string.
*
* @return Manufacturer Deserialize manufacturer entity.
*/
protected function _deserializeManufacturer($manufacturerJson, $id = null)
{
$manufacturerData = json_decode($manufacturerJson, true);
$manufacturer = $id ? $this->readService->getById(new IdType($id)) : $this->writeService->createManufacturer();
$manufacturer->setName(new StringType($manufacturerData['name']))
->setImage(new StringType($manufacturerData['image']));
foreach($manufacturerData['urls'] as $languageCode => $url)
{
$manufacturer->setUrl(new StringType($url), new LanguageCode(new StringType($languageCode)));
}
return $manufacturer;
}
/**
* Serializes manufacturer collections.
*
* @param \ManufacturerCollection $manufacturerCollection Manufacturer collection to be serialized.
*
* @return array Serialized manufacturer collection array.
*/
protected function _serializeManufacturerCollection(ManufacturerCollection $manufacturerCollection)
{
$data = [];
foreach($manufacturerCollection->getArray() as $manufacturer)
{
$data[] = $this->_serializeManufacturer($manufacturer);
}
return $data;
}
}