class PortletActionlogShowPortlet extends ModulePortlet implements PropertyGroupExtensionInterface

Properties

SystemActionlogController $mod
array $_hook_info

Information is populated when called via get_hook (default)

from  ModulePortlet
mixed $portlet_config from  ModulePortlet
protected string $portlet_title from  ModulePortlet
$portlet_title_link from  ModulePortlet
protected mixed $download_handler from  ModulePortlet
protected mixed $storage_path from  ModulePortlet
bool $skip_auto_init from  ModulePortlet
array $multi_group_context from  ModulePortlet
protected Core $caller_reference

Instance calling this portlet

from  ModulePortlet
protected bool $isEmpty

Can be set with setIsEmpty() and should be set to true if there is no data for this portlet It is used by the frontend to allow hiding elements if empty

from  ModulePortlet
protected XF $XF from  ModulePortlet
array $meta_info

Used in CMS to show icon

from  ModulePortlet

Methods

__construct()

No description

array
convertToCmsFDLWithDefaults(array $fdl)

Set current portlet configuration as default values as expected with old CMS This will override currently set defaults

copyReferences(DocumentIndex $livePageIndex, DocumentIndex $stagingPageIndex, array $documentIds)

Copies the references from the staging page to the live page as passive or read references.

delete()

Cleanup references or stored data associated with this portlet instance.

Core|null
getCallingContext()

No description

xmodel_cms_component|xmodel_cms_component_live|null
getCmsComponent()

Getter for the cms component which displays this portlet

string
getEmptyPlaceholder(string $message = null, string $description = null, string $icon = 'ph-cursor-click')

Return Empty Placeholder WebComponent

array
getExtensionConfigFields(Controller $mod)

No description

string
getHookDescription()

No description

from  BaseHook
string
getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

from  BaseHook
array
getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

from  BaseHook
string
getHookInstance()

No description

from  BaseHook
string
getHookName()

No description

from  BaseHook
string
getHookTitle()

No description

from  BaseHook
getObject()

No description

from  BaseHook
mixed
getOption(string $key)

Returns the option with $key set in the config.yml

from  BaseHook
Page|null
getPageContext()

No description

string|null
getPagesMigrationComponent()

No description

string|null
getPagesMigrationHelpText()

No description

string
getPagesMigrationStatus()

No description

mixed
get_config()

No description

array|bool
get_fdl(mixed $component_id = null, $config = false, $profileUuid = null)

No description

string
get_html($size = 'default')

Used in Portal extension

string
get_options()

No description

Template|array
get_properties(mixed $profile_id, null $config = null, null $profile_uuid = null)

Used in lookbook extension

string
get_title()

No description

mixed
get_title_link()

No description

handleDeletedDocumentReferences(array $documentIds)

When a CMS component, the document index references are checked to make sure that the uploaded documents are deleted.

init()

No description

bool
isAvailable()

No description

bool
isEmpty()

Returns true if the portlet returns an empty result (is used be the frontend to hide empty elements)

bool
isPagesContext()

Is this portlet used in pages?

bool
isPagesEditorContext()

Is this portlet currently used in pages editor?

onDiscardChanges(xmodel_cms_page_live $livePage, xmodel_cms_page $stagingPage)

Called when the staging page is replaced with the live page.

onPublish(xmodel_cms_page_live $livePage, xmodel_cms_page $stagingPage)

Called when the staging page is published.

string
render()

No description

restoreReferences(DocumentIndex $liveIndex, DocumentIndex $stagingIndex, array $documentIds)

Copies the read references from the live page to the staging page and re-creates owner references for the staging page.

setCallingContext(Core $context)

No description

void
setCmsComponent(xmodel_cms_component|xmodel_cms_component_live $cmsComponent)

Setter for the cms component

void
setIsEmpty(bool $isEmpty = true)

Mark portlet as empty (is used be the frontend to hide empty elements) Should be set to true if portlet is empty or shows no content template

setPageContext(Page|null $page)

No description

set_caller_reference(Core $instance_ref)

Set Caller Reference This function is automatically called from get_hooks

set_config($config = array())

No description

set_download_handler($handler)

No description

set_mod($mod)

No description

set_options($config = array())

No description

set_storage_path($path)

No description

swapOwnerReference(DocumentIndex $documentIndex, DocumentIndexReference $ownerReference, DocumentIndex $newOwnerIndex)

Moves the staging page owner reference to the live page to prevent deletion of the documents.

void
update(string|null $type)

is called during update() method of cms component. Can be overwritten in portlet, if there is an action required after a form submit.

Details

at line 27
__construct()

No description

in ModulePortlet at line 154
array convertToCmsFDLWithDefaults(array $fdl)

Set current portlet configuration as default values as expected with old CMS This will override currently set defaults

Parameters

array $fdl

Return Value

array

in ModulePortlet at line 528
protected copyReferences(DocumentIndex $livePageIndex, DocumentIndex $stagingPageIndex, array $documentIds)

Copies the references from the staging page to the live page as passive or read references.

Parameters

DocumentIndex $livePageIndex

Live page

DocumentIndex $stagingPageIndex

Staging page

array $documentIds

Attached document index ids

in ModulePortlet at line 349
delete()

Cleanup references or stored data associated with this portlet instance.

Remove references, moves (owner) references from the staging to the live page, when a staging component is deleted.

in ModulePortlet at line 394
Core|null getCallingContext()

No description

Return Value

Core|null

in ModulePortlet at line 122
xmodel_cms_component|xmodel_cms_component_live|null getCmsComponent()

Getter for the cms component which displays this portlet

Return Value

xmodel_cms_component|xmodel_cms_component_live|null

in ModulePortlet at line 590
protected string getEmptyPlaceholder(string $message = null, string $description = null, string $icon = 'ph-cursor-click')

Return Empty Placeholder WebComponent

Parameters

string $message
string $description
string $icon

Return Value

string

at line 134
array getExtensionConfigFields(Controller $mod)

No description

Parameters

Controller $mod

Return Value

array

in BaseHook at line 76
string getHookDescription()

No description

Return Value

string

in BaseHook at line 55
string getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

Return Value

string

in BaseHook at line 45
array getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

Parameters

bool $key

Return Value

array

in BaseHook at line 69
string getHookInstance()

No description

Return Value

string

in BaseHook at line 62
string getHookName()

No description

Return Value

string

in BaseHook at line 83
string getHookTitle()

No description

Return Value

string

in BaseHook at line 88
getObject()

No description

in BaseHook at line 97
mixed getOption(string $key)

Returns the option with $key set in the config.yml

Parameters

string $key

Return Value

mixed

in ModulePortlet at line 413
Page|null getPageContext()

No description

Return Value

Page|null

at line 154
string|null getPagesMigrationComponent()

No description

Return Value

string|null

e.g. ImageComponent

at line 161
string|null getPagesMigrationHelpText()

No description

Return Value

string|null

at line 147
string getPagesMigrationStatus()

No description

Return Value

string MIGRATIONSUPPORT[...]

in ModulePortlet at line 231
mixed get_config()

No description

Return Value

mixed ???

at line 49
array|bool get_fdl(mixed $component_id = null, $config = false, $profileUuid = null)

No description

Parameters

mixed $component_id
$config
$profileUuid

Return Value

array|bool

FDL or false on fail

at line 100
string get_html($size = 'default')

Used in Portal extension

Parameters

$size

Return Value

string html

in ModulePortlet at line 191
final string get_options()

No description

Return Value

string html

at line 115
Template|array get_properties(mixed $profile_id, null $config = null, null $profile_uuid = null)

Used in lookbook extension

Parameters

mixed $profile_id
null $config
null $profile_uuid

Return Value

Template|array

Exceptions

Exception

at line 37
string get_title()

No description

Return Value

string

No description

Return Value

mixed ???

in ModulePortlet at line 446
protected handleDeletedDocumentReferences(array $documentIds)

When a CMS component, the document index references are checked to make sure that the uploaded documents are deleted.

Parameters

array $documentIds

in ModulePortlet at line 182
init()

No description

in ModulePortlet at line 318
bool isAvailable()

No description

Return Value

bool

in ModulePortlet at line 327
bool isEmpty()

Returns true if the portlet returns an empty result (is used be the frontend to hide empty elements)

Return Value

bool

in ModulePortlet at line 402
bool isPagesContext()

Is this portlet used in pages?

Return Value

bool

in ModulePortlet at line 421
bool isPagesEditorContext()

Is this portlet currently used in pages editor?

Return Value

bool

in ModulePortlet at line 379
onDiscardChanges(xmodel_cms_page_live $livePage, xmodel_cms_page $stagingPage)

Called when the staging page is replaced with the live page.

Restores the (owner) references from the staging page to the documents.

Parameters

xmodel_cms_page_live $livePage
xmodel_cms_page $stagingPage

in ModulePortlet at line 364
onPublish(xmodel_cms_page_live $livePage, xmodel_cms_page $stagingPage)

Called when the staging page is published.

Creates a read-reference of the document from the staging to the live page.

Parameters

xmodel_cms_page_live $livePage
xmodel_cms_page $stagingPage

in ModulePortlet at line 298
string render()

No description

Return Value

string html

in ModulePortlet at line 560
protected restoreReferences(DocumentIndex $liveIndex, DocumentIndex $stagingIndex, array $documentIds)

Copies the read references from the live page to the staging page and re-creates owner references for the staging page.

Parameters

DocumentIndex $liveIndex
DocumentIndex $stagingIndex
array $documentIds

in ModulePortlet at line 390
ModulePortlet setCallingContext(Core $context)

No description

Parameters

Core $context

Return Value

ModulePortlet

in ModulePortlet at line 114
void setCmsComponent(xmodel_cms_component|xmodel_cms_component_live $cmsComponent)

Setter for the cms component

Parameters

xmodel_cms_component|xmodel_cms_component_live $cmsComponent

Return Value

void

in ModulePortlet at line 337
void setIsEmpty(bool $isEmpty = true)

Mark portlet as empty (is used be the frontend to hide empty elements) Should be set to true if portlet is empty or shows no content template

Parameters

bool $isEmpty

Return Value

void

in ModulePortlet at line 408
ModulePortlet setPageContext(Page|null $page)

No description

Parameters

Page|null $page

Return Value

ModulePortlet

in ModulePortlet at line 311
set_caller_reference(Core $instance_ref)

Set Caller Reference This function is automatically called from get_hooks

Parameters

Core $instance_ref

in ModulePortlet at line 239
set_config($config = array())

No description

Parameters

$config

in ModulePortlet at line 204
set_download_handler($handler)

No description

Parameters

$handler

in ModulePortlet at line 254
set_mod($mod)

No description

Parameters

$mod

in ModulePortlet at line 223
final set_options($config = array())

No description

Parameters

$config

in ModulePortlet at line 215
set_storage_path($path)

No description

Parameters

$path

in ModulePortlet at line 506
protected swapOwnerReference(DocumentIndex $documentIndex, DocumentIndexReference $ownerReference, DocumentIndex $newOwnerIndex)

Moves the staging page owner reference to the live page to prevent deletion of the documents.

As soon as the live page is deleted, the reference and document will also be deleted.

Parameters

DocumentIndex $documentIndex

Document index of the attached document

DocumentIndexReference $ownerReference

Reference from the staging page to the document

DocumentIndex $newOwnerIndex

The live page

in ModulePortlet at line 168
void update(string|null $type)

is called during update() method of cms component. Can be overwritten in portlet, if there is an action required after a form submit.

Parameters

string|null $type

Return Value

void