phpDocumentor

ContentRepository
in package
implements ContentRepositoryInterface

Class ContentRepository

This class represents the content repository

Tags
category

System

Interfaces, Classes and Traits

ContentRepositoryInterface
Interface ContentRepositoryInterface

Table of Contents

$contentIdentificationFactory  : ContentIdentificationFactoryInterface
$deleter  : ContentDeleterInterface
Content deleter
$factory  : ContentValueObjectFactory
$reader  : ContentReaderInterface
Content reader
$writer  : ContentWriter
Content writer
__construct()  : mixed
ContentRepository constructor
deleteById()  : $this|ContentRepositoryInterface
Deletes the content data in database by id.
findById()  : mixed
getAllContentPages()  : array<string|int, InfoPageContent>
getAllInfoElements()  : array<string|int, InfoElementContent>
nextContentGroupId()  : ContentIdentificationInterface
storeInfoElementContent()  : ContentRepositoryInterface
Save the info element content
storeInfoPageContent()  : ContentRepositoryInterface
Save the info page content
storeLinkPageContent()  : ContentRepositoryInterface
Save the link page content
updateInfoElementContent()  : void
Updates an info element content
updateInfoPageContent()  : void
Updates an info page content.
updateLinkPageContent()  : void
Updates a link page content.
createFilePageContent()  : mixed
createInfoElementContent()  : InfoElementContent
createInfoPageContent()  : InfoPageContent
createLinkPageContent()  : LinkPageContent
createPageContentFromType()  : mixed
isInfoPageContent()  : bool

Properties

Methods

__construct()

ContentRepository constructor

public __construct(ContentWriterInterface $writer, ContentReaderInterface $reader, ContentDeleterInterface $deleter, ContentValueObjectFactory $factory, ContentIdentificationFactoryInterface $contentIdentificationFactory) : mixed
Parameters
$writer : ContentWriterInterface

Content writer

$reader : ContentReaderInterface

Content reader

$deleter : ContentDeleterInterface
$factory : ContentValueObjectFactory
$contentIdentificationFactory : ContentIdentificationFactoryInterface
Return values
mixed

createFilePageContent()

protected createFilePageContent(array<string|int, mixed> $data, array<string|int, mixed> $urlRewriteData) : mixed
Parameters
$data : array<string|int, mixed>
$urlRewriteData : array<string|int, mixed>
Return values
mixed

createInfoPageContent()

protected createInfoPageContent(array<string|int, mixed> $data, array<string|int, mixed> $urlRewriteData) : InfoPageContent
Parameters
$data : array<string|int, mixed>
$urlRewriteData : array<string|int, mixed>
Tags
throws
Exception
Return values
InfoPageContent

createPageContentFromType()

protected createPageContentFromType(array<string|int, mixed> $element) : mixed
Parameters
$element : array<string|int, mixed>
Return values
mixed

isInfoPageContent()

protected isInfoPageContent( $contentPosition) : bool
Parameters
$contentPosition :
Return values
bool

Search results