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 SliderAssignmentRepository

Class SliderAssignmentRepository

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

Methods summary

public
# __construct( CI_DB_query_builder $db )

SliderAssignmentRepository constructor.

SliderAssignmentRepository constructor.

Parameters

$db
Query builder.
public integer|null
# findAssignedSliderIdForEntityTypeAndEntityId( NonEmptyStringType $entityType, IdType $entityId )

Get the Slider ID for the provided entity type (category, content, product) and entity ID.

Get the Slider ID for the provided entity type (category, content, product) and entity ID.

Parameters

$entityType
$entityId

Returns

integer|null

Returns the ID of the slider which is assigned for the given content id or null if no record was found.

Throws

InvalidArgumentException
If the given entity type is not valid.

Implementation of

SliderAssignmentRepositoryInterface::findAssignedSliderIdForEntityTypeAndEntityId()
public SliderAssignmentRepositoryInterface
# store( IdType $sliderId, NonEmptyStringType $entityType, IdType $entityId )

Inserts a slider assignment into the database.

Inserts a slider assignment into the database.

Parameters

$sliderId
$entityType
$entityId

Returns

SliderAssignmentRepositoryInterface
Same instance for method chaining.

Throws

InvalidArgumentException
If the given entity type is not valid.

Implementation of

SliderAssignmentRepositoryInterface::store()
public SliderAssignmentRepositoryInterface
# deleteBySliderId( IdType $sliderId )

Deletes all slider assignments by the given slider ID.

Deletes all slider assignments by the given slider ID.

Parameters

$sliderId

Returns

SliderAssignmentRepositoryInterface
Same instance for method chaining.

Implementation of

SliderAssignmentRepositoryInterface::deleteBySliderId()
public SliderAssignmentRepositoryInterface
# deleteByEntityTypeAndEntityId( NonEmptyStringType $entityType, IdType $entityId )

Deletes a slider assignment by the given entity type and entity ID.

Deletes a slider assignment by the given entity type and entity ID.

Parameters

$entityType
$entityId

Returns

SliderAssignmentRepositoryInterface
Same instance for method chaining.

Throws

InvalidArgumentException
If the given entity type is not valid.

Implementation of

SliderAssignmentRepositoryInterface::deleteByEntityTypeAndEntityId()
protected
# _validateEntityType( NonEmptyStringType $entityType )

Validates the given entity type. Valid types are: category, content, product.

Validates the given entity type. Valid types are: category, content, product.

Parameters

$entityType

Throws

InvalidArgumentException
If the given entity type is not valid.

Properties summary

protected string $table

Table name

Table name

# 'slider_assignments'
protected CI_DB_query_builder $db

Query builder.

Query builder.

#
API documentation generated by ApiGen