ContentWriter

Implements \ContentWriterInterface

Class ContentWriter

This class represents the content writer

category

System

package

Content

Methods

ContentManagerWriter constructor

__construct(\CI_DB_query_builder $queryBuilder) 

Arguments

$queryBuilder

\CI_DB_query_builder

CodeIgniter QueryBuilder

Checks if an content with given group id already exists.

contentGroupIdExists(integer $id) : boolean

Arguments

$id

integer

Response

boolean

Returns a string used for customer group permissions of contents (i.e. c_0_group,c_1_group,c_2_group,c_3_group,)

getGroupIdsString() : string

Response

string

getTranslation

getTranslation(\LocalizedContentAttributeCollectionInterface $collection = null, \LanguageCode $languageCodeObject = null) : mixed|null

Arguments

$languageCodeObject

\LanguageCode

Response

mixed|null

Map the languages

mapLanguages() 

Return the highest content group ID and add one

nextId() : string

Response

string

Store an info element content into the database

storeInfoElementContent(\InfoElementContent $infoElementContent) : string
Throws
\Exception

Arguments

$infoElementContent

\InfoElementContent

Info element content

Response

string

New content group ID

Store an info page content into the database

storeInfoPageContent(\InfoPageContent $infoPageContent) : string
Throws
\Exception

Arguments

$infoPageContent

\InfoPageContent

Info page content

Response

string

New content group ID

Store a link page content into the database

storeLinkPageContent(\LinkPageContent $linkPageContent) : string
Throws
\Exception

Arguments

$linkPageContent

\LinkPageContent

Link page content

Response

string

New content group ID

Updates an info element content

updateInfoElementContent(\InfoElementContent $infoElement) 
Throws
\Exception
\Exception

Arguments

$infoElement

\InfoElementContent

Updates an info page content.

updateInfoPageContent(\InfoPageContent $infoPage) 
Throws
\Exception
\Exception

Arguments

$infoPage

\InfoPageContent

Updates a link page content.

updateLinkPageContent(\LinkPageContent $linkPage) 
Throws
\Exception
\Exception

Arguments

$linkPage

\LinkPageContent

Properties

CodeIgniter QueryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Language map

languageMap : array
var

Type(s)

array

Data

data : array
var

Type(s)

array