phpDocumentor

ContentWriter
in package
implements ContentWriterInterface

Class ContentWriter

This class represents the content writer

Tags
category

System

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

$queryBuilder

CodeIgniter QueryBuilder

protected CI_DB_query_builder $queryBuilder

Methods

storeInfoElementContent()

Store an info element content into the database

public storeInfoElementContent(InfoElementContent $infoElementContent) : string
Parameters
$infoElementContent : InfoElementContent

Info element content

Tags
throws
Exception
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
throws
Exception
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
throws
Exception
Return values
string

New content group ID

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

mapLanguages()

Map the languages

protected mapLanguages() : void
Return values
void

nextId()

Return the highest content group ID and add one

protected nextId() : string
Return values
string

Search results