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

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

Interfaces

  • SerializerInterface

Class SliderJsonSerializer

Class SliderJsonSerializer

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

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

Methods summary

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

Serialize a Slider object to a JSON string.

Serialize a Slider 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).

Returns

string|array

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

Throws

InvalidArgumentException
If the provided object type is invalid.
public Slider
# deserialize( string $string, object $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 slider.
$baseObject

(optional) If provided, this will be the base object to be updated and no new instance will be created.

Returns

Slider

Throws

InvalidArgumentException
If the argument is not a string or is empty.
protected array
# _serializeSlides( Slider $slider )

Serialize the slides of a slider.

Serialize the slides of a slider.

Parameters

$slider

Returns

array
protected array
# _serializeSlideImages( Slide $slide )

Serialize the slide images of a slide.

Serialize the slide images of a slide.

Parameters

$slide

Returns

array
public array
# _serializeSlideImageAreas( SlideImage $slideImage )

Serialize the slide image areas of a slide image.

Serialize the slide image areas of a slide image.

Parameters

$slideImage

Returns

array
protected SlideCollection
# _deserializeSlides( object $json )

Deserialize slides from slider JSON object.

Deserialize slides from slider JSON object.

Parameters

$json

Returns

SlideCollection
protected SlideImageCollection
# _deserializeSlideImages( object $json )

Deserialize slide images from slide JSON object.

Deserialize slide images from slide JSON object.

Parameters

$json

Returns

SlideImageCollection
protected SlideImageAreaCollection
# _deserializeSlideImageAreas( object $json )

Deserialize slide image areas from slide image JSON object.

Deserialize slide image areas from slide image JSON object.

Parameters

$json

Returns

SlideImageAreaCollection

Methods inherited from AbstractJsonSerializer

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

Properties summary

Properties inherited from AbstractJsonSerializer

$languageProvider

API documentation generated by ApiGen