Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • 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
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • CategoryRepository
  • CategoryRepositoryDeleter
  • CategoryRepositoryReader
  • CategoryRepositoryWriter
  • CategorySettingsRepository
  • CategorySettingsRepositoryReader
  • CategorySettingsRepositoryWriter

Class CategorySettingsRepositoryReader

Class CategorySettingsRepositoryReader

This class provides methods for fetching particular columns of specific category records in the database. The category settings are stored in the categories table and are more related to display and visibility modes of category related data.

CategorySettingsRepositoryReader implements CategorySettingsRepositoryReaderInterface
Package: Category\Repositories
Category: System
Located at CoreServices/Category/Repositories/Reader/CategorySettingsRepositoryReader.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db, CategoryFactoryInterface $categoryFactory, CustomerStatusProviderInterface $customerStatusProvider )

CategorySettingsRepositoryReader constructor.

CategorySettingsRepositoryReader constructor.

Parameters

$db
Database connector.
$categoryFactory
Category factory.
$customerStatusProvider
Customer Status Provider.
public CategorySettingsInterface
# getById( IdType $categoryId )

Returns category settings based on ID given.

Returns category settings based on ID given.

Parameters

$categoryId
Category ID.

Returns

CategorySettingsInterface

Throws

UnexpectedValueException
if no category record for the provided category ID was found.

Implementation of

CategorySettingsRepositoryReaderInterface::getById()
protected CategorySettings
# _createAndReturnCategorySettings( array $category )

Creates a CategorySettings object and returns it.

Creates a CategorySettings object and returns it.

Parameters

$category
Fetched Associative category array.

Returns

CategorySettings
$categorySettings
protected CategorySettingsRepositoryReader
# _setGroupPermissions( array $category, array $groupPermissionIds, CategorySettings $categorySettings )

Sets the permitted customers statuses.

Sets the permitted customers statuses.

Parameters

$category
The fetched category array from the database.
$groupPermissionIds
Array of available group permission.
$categorySettings
Object to set the customer statuses.

Returns

CategorySettingsRepositoryReader
Same instance for chained method calls.

Properties summary

protected CI_DB_query_builder $db

Database connector.

Database connector.

#
protected CategoryFactoryInterface $categoryFactory

Category factory.

Category factory.

#
protected CustomerStatusProviderInterface $customerStatusProvider

Customer Status Provider

Customer Status Provider

#
API documentation generated by ApiGen