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

  • SlideImageAreaRepository
  • SlideImageAreaRepositoryDeleter
  • SlideImageAreaRepositoryReader
  • SlideImageAreaRepositoryWriter
  • SlideImageRepository
  • SlideImageRepositoryDeleter
  • SlideImageRepositoryReader
  • SlideImageRepositoryWriter
  • SliderAssignmentRepository
  • SlideRepository
  • SlideRepositoryDeleter
  • SlideRepositoryReader
  • SlideRepositoryWriter
  • SliderRepository
  • SliderRepositoryDeleter
  • SliderRepositoryReader
  • SliderRepositoryWriter

Class SliderRepository

Class SliderRepository

SliderRepository implements SliderRepositoryInterface
Package: Slider\Repositories
Category: System
Located at Services/Core/Slider/Repositories/SliderRepository.inc.php

Methods summary

public
# __construct( SliderRepositoryWriterInterface $writer, SliderRepositoryReaderInterface $reader, SliderRepositoryDeleterInterface $deleter, SlideRepositoryInterface $slideRepository )

SliderRepository constructor.

SliderRepository constructor.

Parameters

$writer
$reader
$deleter
$slideRepository
public SliderCollection
# getAll( )

Returns a SliderCollection with all existing Slider objects.

Returns a SliderCollection with all existing Slider objects.

Returns

SliderCollection

Implementation of

SliderRepositoryInterface::getAll()
public SliderInterface
# getById( IdType $sliderId )

Returns a Slider instance by the given slider ID.

Returns a Slider instance by the given slider ID.

Parameters

$sliderId
ID of the slider to get.

Returns

SliderInterface

Implementation of

SliderRepositoryInterface::getById()
public SliderRepositoryInterface
# store( SliderInterface $slider )

Stores a Slider to the database.

Stores a Slider to the database.

Parameters

$slider
Slider to store.

Returns

SliderRepositoryInterface
Same instance for method chaining.

Throws

InvalidArgumentException
If no slider was found by the given ID.

Implementation of

SliderRepositoryInterface::store()
public SliderRepositoryInterface
# setStartPageSlider( IdType $sliderId )

Set the Slider for the start page.

Set the Slider for the start page.

Parameters

$sliderId
ID of the slider to set as the start page slider.

Returns

SliderRepositoryInterface
Same instance for method chaining.

Implementation of

SliderRepositoryInterface::setStartPageSlider()
public SliderRepositoryInterface
# deleteSliderById( IdType $sliderId )

Deletes a Slider by the given slider ID.

Deletes a Slider by the given slider ID.

Parameters

$sliderId
ID of the slider to delete.

Returns

SliderRepositoryInterface
Same instance for method chaining.

Throws

InvalidArgumentException
If no slider was found by the given ID.

Implementation of

SliderRepositoryInterface::deleteSliderById()
public SliderInterface|null
# getStartPageSlider( )

Get the Slider for the start page.

Get the Slider for the start page.

Returns

SliderInterface|null
Returns the start page slider instance or null if no record was found.

Implementation of

SliderRepositoryInterface::getStartPageSlider()
protected SlideCollection
# _getSlideCollection( IdType $sliderId )

Returns a SlideCollection with all existing Slide objects by the given slider ID.

Returns a SlideCollection with all existing Slide objects by the given slider ID.

Parameters

$sliderId
ID of the slider to fetch the slide collection from.

Returns

SlideCollection

Properties summary

protected SliderRepositoryWriterInterface $writer
#
protected SliderRepositoryReaderInterface $reader
#
protected SliderRepositoryDeleterInterface $deleter
#
protected SlideRepositoryInterface $slideRepository
#
API documentation generated by ApiGen