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

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
\LocalizedAttributeNotFoundException

On missing locale-based entry

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
\LocalizedAttributeNotFoundException

On missing locale-based entry

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
\LocalizedAttributeNotFoundException

On missing locale-based entry

Arguments

$linkPageContent

\LinkPageContent

Link page content

Response

string

New content group ID

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