Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminAccess
    • Collections
    • Deleters
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Managers
    • Readers
    • Writers
  • 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
  • Review
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects
  • 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
  • Withdrawal
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects

Classes

  • AdminAccessAjaxController
  • AdminAccessController
  • AdminFavoritesAjaxController
  • AdminInfoBoxAjaxController
  • AfterbuyAjaxController
  • CatalogSelectWidgetAjaxController
  • ContentManagerElementsAjaxController
  • ContentManagerElementsController
  • ContentManagerPagesAjaxController
  • ContentManagerPagesController
  • ContentManagerProductContentsAjaxController
  • ContentManagerProductContentsController
  • CustomerGroupAjaxController
  • CustomerLoginController
  • DashboardController
  • DynamicShopMessagesController
  • EmailsController
  • EmbeddedModuleController
  • FileManagerController
  • GeschaeftskundenversandController
  • ImageProcessingController
  • InvoicesModalsAjaxController
  • InvoicesOverviewAjaxController
  • InvoicesOverviewController
  • JSWidgetsAjaxController
  • LawsController
  • ManufacturerAjaxController
  • MaxFileSizeController
  • ModuleCenterController
  • NewAttributesController
  • OrdersModalsAjaxController
  • OrdersOverviewAjaxController
  • OrdersOverviewController
  • OrderTooltipController
  • PackedDownloadController
  • QuantityUnitAjaxController
  • QuantityUnitController
  • QuickEditOverviewAjaxController
  • QuickEditOverviewController
  • QuickEditProductPropertiesAjaxController
  • QuickEditSpecialPricesAjaxController
  • SessionTimeoutAjaxController
  • ShopKeyController
  • SlidersDetailsAjaxController
  • SlidersDetailsController
  • SlidersOverviewAjaxController
  • SlidersOverviewController
  • StaticSeoUrlAjaxController
  • StaticSeoUrlController
  • TemplateConfigurationController
  • UserConfigurationController
  • VPEAjaxController
  • VPEController

Class ManufacturerAjaxController

Class ManufacturerAjaxController

HttpViewController implements HttpViewControllerInterface
Extended by AdminHttpViewController implements AdminStatusOnlyInterface
Extended by ManufacturerAjaxController
Package: AdminHttpViewControllers
Category: System
Extends: AdminHttpViewController
Located at Controllers/HttpView/AdminAjax/ManufacturerAjaxController.inc.php

Methods summary

public
# init( )

Initialization of Manufacturer controller

Initialization of Manufacturer controller

public boolean
# actionSave( )

Creates an manufacturer entity in the database.

Creates an manufacturer entity in the database.

Returns

boolean
protected array
# _storeManufacturer( ManufacturerInterface $manufacturer )

Creates manufacturers data from post data. manufacturer_urls from $_POST parameter are set by this method.

Creates manufacturers data from post data. manufacturer_urls from $_POST parameter are set by this method.

Parameters

$manufacturer

Returns

array
protected
# _storeManufacturerUrls( ManufacturerInterface $manufacturer )

Stores all manufacturer urls with language id.

Stores all manufacturer urls with language id.

Parameters

$manufacturer

Returns


$this
protected
# _storeManufacturerImage( ManufacturerInterface $manufacturer )

Stores an manufacturer image or replace one.

Stores an manufacturer image or replace one.

Parameters

$manufacturer

Returns


$this
protected
# _storeManufacturerImageName( ManufacturerInterface $manufacturer )

Stores manufacturer image name if set.

Stores manufacturer image name if set.

Parameters

$manufacturer

Returns


$this
protected
# _deleteImageCheckbox( ManufacturerInterface $manufacturer )

If checkbox are checked, delete the manufacturer image.

If checkbox are checked, delete the manufacturer image.

Parameters

$manufacturer

Returns


$this
protected boolean
# _isImageNameChanged( ManufacturerInterface $manufacturer )

Checks if the name of the image has changed.

Checks if the name of the image has changed.

Parameters

$manufacturer

Returns

boolean
protected
# _setImageToManufacturer( ManufacturerInterface $manufacturer, ExistingFile $existingFilesTmpName, FilenameStringType $imageName )

Set an Image to an Manufacturer after saving it in the Filesystem.

Set an Image to an Manufacturer after saving it in the Filesystem.

Parameters

$manufacturer
$existingFilesTmpName
$imageName

Returns


$this
protected
# _deleteImageIfExists( ManufacturerInterface $manufacturer )

Deletes image from manufacturer if set.

Deletes image from manufacturer if set.

Parameters

$manufacturer

Returns


$this
public
# _removeImage( )

Removes an manufacturers image in the database and filesystem if image is set.

Removes an manufacturers image in the database and filesystem if image is set.

Returns


$this
protected ManufacturerInterface
# _manufacturerById( string $type = 'get' )

Parameters

$type

Returns

ManufacturerInterface
public boolean
# actionGetData( )

Gets all manufacturers entity's from database.

Gets all manufacturers entity's from database.

Returns

boolean
protected array
# _serializeManufacturerCollection( ManufacturerCollection $manufacturerCollection )

Serializes manufacturer collections.

Serializes manufacturer collections.

Parameters

$manufacturerCollection
Manufacturer collection to be serialized.

Returns

array
Serialized manufacturer collection array.
protected array
# _serializeManufacturer( ManufacturerInterface $manufacturer )

Serializes manufacturer entities.

Serializes manufacturer entities.

Parameters

$manufacturer
Manufacturer entity to be serialized.

Returns

array
Serialized manufacturer array.
protected array
# _langIdsByLangCode( array $languageCodes )

Converts an array with language codes to an array with codes as key and the language id as value.

Converts an array with language codes to an array with codes as key and the language id as value.

Parameters

$languageCodes
Array that contains the language codes.

Returns

array
Format: [$languageCode => $languageId, (…)].
public boolean
# actionGetById( )

Gets an manufacturers entity from database by id.

Gets an manufacturers entity from database by id.

Returns

boolean
public boolean
# actionUpdate( )

Updates an manufacturers entity in the database.

Updates an manufacturers entity in the database.

Returns

boolean
public boolean
# actionRemove( )

Removes an manufacturers entity in the database.

Removes an manufacturers entity in the database.

Returns

boolean
protected Manufacturer
# _deserializeManufacturer( string $manufacturerJson, null $id = null )

Deserialize manufacturer entities.

Deserialize manufacturer entities.

Parameters

$manufacturerJson
Manufacturer entity as json string.
$id

Returns

Manufacturer
Deserialize manufacturer entity.

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), actionDefault(), getTemplateFile(), proceed()

Properties summary

protected ManufacturerReadService $manufacturerReadService
#
protected ManufacturerWriteService $manufacturerWriteService
#
protected LanguageProvider $languageProvider
#

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray

API documentation generated by ApiGen