ContentWriter
in package
implements
ContentWriterInterface
Class ContentWriter
This class represents the content writer
Tags
Interfaces, Classes and Traits
- ContentWriterInterface
- Interface ContentWriterInterface
Table of Contents
- $contentIdResolver : ContentIdResolverInterface
- $data : array<string|int, mixed>
- Data
- $languageMap : array<string|int, mixed>
- Language map
- $queryBuilder : CI_DB_query_builder
- CodeIgniter QueryBuilder
- __construct() : mixed
- ContentManagerWriter constructor
- persistAlias() : void
- storeInfoElementContent() : string
- Store an info element content into the database
- storeInfoPageContent() : string
- Store an info page content into the database
- storeLinkPageContent() : string
- Store a link page content into the database
- updateInfoElementContent() : void
- Updates an info element content
- updateInfoPageContent() : void
- Updates an info page content.
- updateLinkPageContent() : void
- Updates a link page content.
- contentGroupIdExists() : bool
- Checks if an content with given group id already exists.
- getGroupIdsString() : string
- Returns a string used for customer group permissions of contents (i.e. c_0_group,c_1_group,c_2_group,c_3_group,)
- getTranslation() : mixed|null
- mapLanguages() : void
- Map the languages
- nextId() : string
- Return the highest content group ID and add one
Properties
$contentIdResolver
protected
ContentIdResolverInterface
$contentIdResolver
$data
Data
protected
array<string|int, mixed>
$data
= []
$languageMap
Language map
protected
array<string|int, mixed>
$languageMap
$queryBuilder
CodeIgniter QueryBuilder
protected
CI_DB_query_builder
$queryBuilder
Methods
__construct()
ContentManagerWriter constructor
public
__construct(CI_DB_query_builder $queryBuilder, ContentIdResolverInterface $contentIdResolver) : mixed
Parameters
- $queryBuilder : CI_DB_query_builder
-
CodeIgniter QueryBuilder
- $contentIdResolver : ContentIdResolverInterface
Return values
mixed —persistAlias()
public
persistAlias(int $contentGroup, ContentIdentification $id) : void
Parameters
- $contentGroup : int
- $id : ContentIdentification
Return values
void —storeInfoElementContent()
Store an info element content into the database
public
storeInfoElementContent(InfoElementContent $infoElementContent) : string
Parameters
- $infoElementContent : InfoElementContent
-
Info element content
Tags
Return values
string —New content group ID
storeInfoPageContent()
Store an info page content into the database
public
storeInfoPageContent(InfoPageContent $infoPageContent) : string
Parameters
- $infoPageContent : InfoPageContent
-
Info page content
Tags
Return values
string —New content group ID
storeLinkPageContent()
Store a link page content into the database
public
storeLinkPageContent(LinkPageContent $linkPageContent) : string
Parameters
- $linkPageContent : LinkPageContent
-
Link page content
Tags
Return values
string —New content group ID
updateInfoElementContent()
Updates an info element content
public
updateInfoElementContent(InfoElementContent $infoElement) : void
Parameters
- $infoElement : InfoElementContent
Tags
Return values
void —updateInfoPageContent()
Updates an info page content.
public
updateInfoPageContent(InfoPageContent $infoPage) : void
Parameters
- $infoPage : InfoPageContent
Tags
Return values
void —updateLinkPageContent()
Updates a link page content.
public
updateLinkPageContent(LinkPageContent $linkPage) : void
Parameters
- $linkPage : LinkPageContent
Tags
Return values
void —contentGroupIdExists()
Checks if an content with given group id already exists.
protected
contentGroupIdExists(int $id) : bool
Parameters
- $id : int
Return values
bool —getGroupIdsString()
Returns a string used for customer group permissions of contents (i.e. c_0_group,c_1_group,c_2_group,c_3_group,)
protected
getGroupIdsString() : string
Return values
string —getTranslation()
protected
getTranslation([LocalizedContentAttributeCollectionInterface $collection = null ][, LanguageCode $languageCodeObject = null ]) : mixed|null
Parameters
- $collection : LocalizedContentAttributeCollectionInterface = null
- $languageCodeObject : LanguageCode = null
Return values
mixed|null —mapLanguages()
Map the languages
protected
mapLanguages() : void
Return values
void —nextId()
Return the highest content group ID and add one
protected
nextId() : string