Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

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

Classes

  • SharedShoppingCartDeleter
  • SharedShoppingCartReader
  • SharedShoppingCartRepository
  • SharedShoppingCartService
  • SharedShoppingCartSettings
  • SharedShoppingCartWriter

Class SharedShoppingCartService

Class SharedShoppingCartService

SharedShoppingCartService implements SharedShoppingCartServiceInterface
Package: SharedShoppingCart
Category: System
Located at Services/Core/ShoppingCart/SharedShoppingCartService.inc.php

Methods summary

public
# __construct( SharedShoppingCartRepository $repository, SharedShoppingCartSettingsInterface $settings )

SharedShoppingCartService constructor.

SharedShoppingCartService constructor.

Parameters

$repository
$settings
public string
# storeShoppingCart( array $shoppingCartContent, IdType $userId = null )

Stores the cart and returns the hash

Stores the cart and returns the hash

Parameters

$shoppingCartContent
The cart content
$userId
The user ID of the user who is sharing the cart

Returns

string
The hash of the cart

Implementation of

SharedShoppingCartServiceInterface::storeShoppingCart()
public array
# getShoppingCart( StringType $shoppingCartHash )

Gets the content of the shopping cart corresponding to the hash

Gets the content of the shopping cart corresponding to the hash

Parameters

$shoppingCartHash
Hash of the shopping cart

Returns

array
Content of the shopping cart

Implementation of

SharedShoppingCartServiceInterface::getShoppingCart()
public
# deleteExpiredShoppingCarts( )

Deletes all shared shopping carts that exceeded the configured life period

Deletes all shared shopping carts that exceeded the configured life period

Implementation of

SharedShoppingCartServiceInterface::deleteExpiredShoppingCarts()

Properties summary

protected SharedShoppingCartRepository $repository
#
protected SharedShoppingCartSettingsInterface $settings
#
API documentation generated by ApiGen