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

  • ProductListProvider

Class ProductListProvider

Class ProductListProvider

ProductListProvider implements ProductListProviderInterface
Package: Product\Providers
Category: System
Located at Services/Core/Product/Providers/ProductListProvider.inc.php

Methods summary

public
# __construct( LanguageCode $languageCode, array $conditions, ProductRepositoryInterface $productRepo, CI_DB_query_builder $db )

ProductListProvider constructor.

ProductListProvider constructor.

Parameters

$languageCode
Two-letter language code.
$conditions
Database query conditions.
$productRepo
Product repository.
$db
Database connection.
protected ProductListProvider
# _select( )

Build the select part of the query build.

Build the select part of the query build.

Returns

ProductListProvider
Same instance for chained method calls.
protected ProductListProvider
# _applyExtraConditions( )

Apply extra query conditions.

Apply extra query conditions.

Returns

ProductListProvider
Same instance for chained method calls.
protected ProductListItemCollection
# _prepareCollection( array $result )

Prepares the ProductListItemCollection object.

Prepares the ProductListItemCollection object.

Parameters

$result
Query result.

Returns

ProductListItemCollection

Throws

InvalidArgumentException
if the provided result is not valid.
public ProductListItemCollection
# getByCategoryId( IdType $categoryId )

Returns a product list item collection by the provided category ID.

Returns a product list item collection by the provided category ID.

Parameters

$categoryId
Category ID.

Returns

ProductListItemCollection

Throws

InvalidArgumentException
if the provided category ID is not valid.

Implementation of

ProductListProviderInterface::getByCategoryId()
public ProductListItemCollection
# getAll( )

Get all product list items.

Get all product list items.

Returns

ProductListItemCollection

Implementation of

ProductListProviderInterface::getAll()

Properties summary

protected LanguageCode $languageCode

Two-letter language code.

Two-letter language code.

#
protected array $conditions

Database query conditions.

Database query conditions.

#
protected ProductRepositoryInterface $productRepository

Product repository.

Product repository.

#
protected CI_DB_query_builder $db

Database connection.

Database connection.

#
API documentation generated by ApiGen