com\setasign\SetaSite\Page

PageEditorHelper

File: /SetaSite/src/Page/PageEditorHelper.php

Class hierarchy

Summary

Static Methods

clearSession()

public static PageEditorHelper::clearSession (
\com\setasign\SetaFramework\Session\SessionInterface $session,
int $pageId,
string $language
): void
Parameters
$session: \com\setasign\SetaFramework\Session\SessionInterface
 
$pageId: int
 
$language: string
 

getFromSession()

public static PageEditorHelper::getFromSession (
\com\setasign\SetaFramework\Session\SessionInterface $session,
Page $page,
bool $allowCleanup = false
): void
Parameters
$session: \com\setasign\SetaFramework\Session\SessionInterface
 
$page: Page
 
$allowCleanup: bool
 

isEdited()

saveToSession()

public static PageEditorHelper::saveToSession (
\com\setasign\SetaFramework\Session\SessionInterface $session,
Page $page,
bool $forceNewHash = false
): void
Parameters
$session: \com\setasign\SetaFramework\Session\SessionInterface
 
$page: Page
 
$forceNewHash: bool

When the page is saved we need to generate a new hash!