Documentation

PageEventListener implements EventListener

PageEventListener

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

CLOUDREXX Development Team info@cloudrexx.com

subpackage

core_contentmanager

Table of Contents

Interfaces

EventListener
Event listener

Properties

$lastPreUpdateChangeset  : array<string|int, mixed>
lastPreUpdateChangeset

Methods

onEvent()  : mixed
onFlush()  : mixed
postPersist()  : mixed
postRemove()  : mixed
postUpdate()  : mixed
prePersist()  : mixed
preRemove()  : mixed
preUpdate()  : mixed
SearchFindContent()  : mixed
checkValidPersistingOperation()  : mixed
Sanity test for Pages. Prevents user from persisting bogus Pages.
setUpdatedByCurrentlyLoggedInUser()  : null
The page is updated by currently logged user
writeXmlSitemap()  : mixed
fixAutoIncrement()  : mixed
Fix the auto increment for the content_page table Ticket #1070 in bug tracker

Properties

$lastPreUpdateChangeset

lastPreUpdateChangeset

protected array<string|int, mixed> $lastPreUpdateChangeset

Entity changeset

Methods

onEvent()

public onEvent(mixed $eventName, array<string|int, mixed> $eventArgs) : mixed
Parameters
$eventName : mixed
$eventArgs : array<string|int, mixed>

preUpdate()

public preUpdate(PreUpdateEventArgs $eventArgs) : mixed
Parameters
$eventArgs : PreUpdateEventArgs

SearchFindContent()

public static SearchFindContent(mixed $search) : mixed
Parameters
$search : mixed

checkValidPersistingOperation()

Sanity test for Pages. Prevents user from persisting bogus Pages.

protected checkValidPersistingOperation(mixed $pageRepo, mixed $page) : mixed

This is the case if

  • the Page has fallback content. In this case, the Page's content was overwritten with other data that is not meant to be persisted.
  • more than one page has module home without cmd
Parameters
$pageRepo : mixed
$page : mixed
Tags
throws
PageEventListenerException

setUpdatedByCurrentlyLoggedInUser()

The page is updated by currently logged user

protected setUpdatedByCurrentlyLoggedInUser(PreUpdateEventArgs $eventArgs) : null
Parameters
$eventArgs : PreUpdateEventArgs
Return values
null

writeXmlSitemap()

protected writeXmlSitemap(mixed $eventArgs) : mixed
Parameters
$eventArgs : mixed

fixAutoIncrement()

Fix the auto increment for the content_page table Ticket #1070 in bug tracker

private fixAutoIncrement() : mixed

The last content page have been deleted and the website was moved to another server, in this case the auto increment does not match the log's last object_id. This will cause a duplicate primary key.


        
On this page

Search results