PurposeDatabaseReader
in package
implements
PurposeDatabaseReaderInterface
Class PurposeDatabaseReader
Interfaces, Classes and Traits
- PurposeDatabaseReaderInterface
- Interface PurposeDatabaseReaderInterface
Table of Contents
- PURPOSES_TABLE = 'cookie_consent_panel_purposes'
- $queryBuilder : CI_DB_query_builder
- $categoryMapper : CategoryCategoryIdMapperInterface
- __construct() : mixed
- PurposeDatabaseReader constructor.
- activePurposes() : array<string|int, mixed>
- allPurposes() : array<string|int, mixed>
- baseQuery() : CI_DB_query_builder
- mapToDto() : array<string|int, mixed>
Constants
PURPOSES_TABLE
protected
mixed
PURPOSES_TABLE
= 'cookie_consent_panel_purposes'
Properties
$queryBuilder
protected
CI_DB_query_builder
$queryBuilder
$categoryMapper
private
CategoryCategoryIdMapperInterface
$categoryMapper
Methods
__construct()
PurposeDatabaseReader constructor.
public
__construct(CI_DB_query_builder $queryBuilder, CategoryCategoryIdMapperInterface $categoryMapper) : mixed
Parameters
- $queryBuilder : CI_DB_query_builder
- $categoryMapper : CategoryCategoryIdMapperInterface
Return values
mixed —activePurposes()
public
activePurposes(int $languageId) : array<string|int, mixed>
Parameters
- $languageId : int
Tags
Return values
array<string|int, mixed> —allPurposes()
public
allPurposes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —baseQuery()
protected
baseQuery([int $languageId = null ]) : CI_DB_query_builder
Parameters
- $languageId : int = null
Return values
CI_DB_query_builder —mapToDto()
protected
mapToDto( $data) : array<string|int, mixed>