com\setasign\SetaSite\Page
PageEditorHelper
File: /SetaSite/src/Page/PageEditorHelper.php
Class hierarchy
Summary
Static Methods
clearSession()
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
): voidPage $page,
bool $allowCleanup = false
Parameters
- $session: \com\setasign\SetaFramework\Session\SessionInterface
- $page: Page
- $allowCleanup: bool
isEdited()
Parameters
- $pages: Pages
- $session: \com\setasign\SetaFramework\Session\SessionInterface
- $page: Page
saveToSession()
public static PageEditorHelper::saveToSession (
\com\setasign\SetaFramework\Session\SessionInterface $session,
Page $page,
bool $forceNewHash = false
): voidPage $page,
bool $forceNewHash = false
Parameters
- $session: \com\setasign\SetaFramework\Session\SessionInterface
- $page: Page
- $forceNewHash: bool
When the page is saved we need to generate a new hash!
