Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • 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
    • Orders
    • Serializers
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Interfaces
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • 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
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractJsonSerializer
  • AddressJsonSerializer
  • CategoryJsonSerializer
  • CategoryListItemJsonSerializer
  • CountryJsonSerializer
  • CustomerJsonSerializer
  • EmailJsonSerializer
  • OrderJsonSerializer
  • OrderListItemJsonSerializer
  • ProductJsonSerializer
  • ProductListItemJsonSerializer
  • ZoneJsonSerializer

Interfaces

  • SerializerInterface

Class OrderListItemJsonSerializer

Class OrderListItemJsonSerializer

This class will serialize and deserialize an OrderListItem entity. It can be used into many places where PHP interacts with external requests such as AJAX or API communication.

AbstractJsonSerializer implements SerializerInterface
Extended by OrderListItemJsonSerializer
Package: Extensions\Serializers
Category: System
Located at Extensions/Serializers/OrderListItemJsonSerializer.inc.php

Methods summary

public string|array
# serialize( OrderListItem $object, boolean $encode = true )

Serialize an OrderListItem object to a JSON string.

Serialize an OrderListItem object to a JSON string.

Parameters

$object
Object instance to be serialized.
$encode

(optional) Whether to json_encode the result of the method (default true). Sometimes it might be required to encode an array of multiple customer records together and not one by one.

Returns

string|array

Returns the json encoded order list item (string) or an array that can be easily encoded into a JSON string.

Throws

InvalidArgumentException
If the provided object type is invalid.
public
# deserialize( string $string, stdClass $baseObject = null )

Deserialize method is not used by the api.

Deserialize method is not used by the api.

Parameters

$string
JSON string that contains the data of the address.
$baseObject

(optional) This parameter is not supported for this serializer because the OrderListItem does not have any setter methods.

Throws

RuntimeException
If the argument is not a string or is empty.
protected array
# _serializeCustomerMemos( CustomerMemoCollection $customerMemoCollection )

Serialize Customer Memo Collection

Serialize Customer Memo Collection

Parameters

$customerMemoCollection

Returns

array
protected array
# _serializeOrderAddressBlock( OrderAddressBlock $orderAddressBlock )

Serialize Order AddressBlock

Serialize Order AddressBlock

Parameters

$orderAddressBlock

Returns

array
protected array
# _serializeWithdrawalIds( IdCollection $withdrawalIds )

Serialize WithdrawalIds Collection

Serialize WithdrawalIds Collection

Parameters

$withdrawalIds

Returns

array

Methods inherited from AbstractJsonSerializer

__construct(), _deserializeAddonValues(), _deserializeLanguageSpecificProperty(), _serializeAddonValues(), _serializeLanguageSpecificProperty(), jsonEncode()

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider

API documentation generated by ApiGen