rex_extension_point_slice_menu
extends rex_extension_point
in package
Extension Point Class.
Tags
Table of Contents
Constants
- NAME = 'SLICE_MENU'
Methods
- __construct() : mixed
- addAdditionalActions() : void
- getAdditionalActions() : array<string|int, mixed>
- getArticleId() : int
- getClangId() : int
- getContext() : rex_context
- getCtypeId() : int
- getFragment() : string
-
getMenuDeleteAction()
: array{label?: string, url?: string, attributes?: array{class: list
, title: string, data-confirm: string}} -
getMenuEditAction()
: array{label?: string, url?: string, attributes?: array{class: list
, title: string}} -
getMenuMovedownAction()
: array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list
, title: string}} -
getMenuMoveupAction()
: array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list
, title: string}} -
getMenuStatusAction()
: array{label?: string, url?: string, attributes?: array{class: list
}} - getModuleId() : int
- getName() : string
- Returns the name.
- getParam() : mixed
- Returns the param for the given key.
- getParams() : array<string, mixed>
- Returns all params.
- getSliceId() : int
- getSubject() : T
- Returns the subject.
- hasParam() : bool
- Returns whether the given param exists.
- hasPerm() : bool
- isReadonly() : bool
- Returns whether the extension point is readonly.
- setAdditionalActions() : void
- setExtensionParams() : void
- Sets the specific params for the next extension.
- setMenuDeleteAction() : void
- setMenuEditAction() : void
- setMenuMovedownAction() : void
- setMenuMoveupAction() : void
- setMenuStatusAction() : void
- setParam() : void
- Sets a param.
- setSubject() : void
- Sets the subject.
Constants
NAME
public
mixed
NAME
= 'SLICE_MENU'
Methods
__construct()
public
__construct(array{label?: string, url?: string, attributes?: array{class: list, title: string}} $menuEditAction, array{label?: string, url?: string, attributes?: array{class: list, title: string, data-confirm: string}} $menuDeleteAction, array{label?: string, url?: string, attributes?: array{class: list}} $menuStatusAction, array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list, title: string}} $menuMoveupAction, array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list, title: string}} $menuMovedownAction, rex_context $context, string $fragment, int $articleId, int $clang, int $ctype, int $moduleId, int $sliceId, bool $hasPerm) : mixed
Parameters
-
$menuEditAction
: array{label?: string, url?: string, attributes?: array{class: list
, title: string}} -
$menuDeleteAction
: array{label?: string, url?: string, attributes?: array{class: list
, title: string, data-confirm: string}} -
$menuStatusAction
: array{label?: string, url?: string, attributes?: array{class: list
}} -
$menuMoveupAction
: array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list
, title: string}} -
$menuMovedownAction
: array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list
, title: string}} - $context : rex_context
- $fragment : string
- $articleId : int
- $clang : int
- $ctype : int
- $moduleId : int
- $sliceId : int
- $hasPerm : bool
addAdditionalActions()
public
addAdditionalActions(array<string|int, mixed> $additionalActions) : void
Parameters
- $additionalActions : array<string|int, mixed>
getAdditionalActions()
public
getAdditionalActions() : array<string|int, mixed>
Return values
array<string|int, mixed>getArticleId()
public
getArticleId() : int
Return values
intgetClangId()
public
getClangId() : int
Return values
intgetContext()
public
getContext() : rex_context
Return values
rex_contextgetCtypeId()
public
getCtypeId() : int
Return values
intgetFragment()
public
getFragment() : string
Return values
stringgetMenuDeleteAction()
public
getMenuDeleteAction() : array{label?: string, url?: string, attributes?: array{class: list, title: string, data-confirm: string}}
Return values
array{label?: string, url?: string, attributes?: array{class: listgetMenuEditAction()
public
getMenuEditAction() : array{label?: string, url?: string, attributes?: array{class: list, title: string}}
Return values
array{label?: string, url?: string, attributes?: array{class: listgetMenuMovedownAction()
public
getMenuMovedownAction() : array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list, title: string}}
Return values
array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: listgetMenuMoveupAction()
public
getMenuMoveupAction() : array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list, title: string}}
Return values
array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: listgetMenuStatusAction()
public
getMenuStatusAction() : array{label?: string, url?: string, attributes?: array{class: list}}
Return values
array{label?: string, url?: string, attributes?: array{class: listgetModuleId()
public
getModuleId() : int
Return values
intgetName()
Returns the name.
public
getName() : string
Return values
stringgetParam()
Returns the param for the given key.
public
getParam(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
getParams()
Returns all params.
public
getParams() : array<string, mixed>
Return values
array<string, mixed>getSliceId()
public
getSliceId() : int
Return values
intgetSubject()
Returns the subject.
public
getSubject() : T
Return values
ThasParam()
Returns whether the given param exists.
public
hasParam(string $key) : bool
Parameters
- $key : string
Return values
boolhasPerm()
public
hasPerm() : bool
Return values
boolisReadonly()
Returns whether the extension point is readonly.
public
isReadonly() : bool
Return values
boolsetAdditionalActions()
public
setAdditionalActions(array<string|int, mixed> $additionalActions) : void
Parameters
- $additionalActions : array<string|int, mixed>
setExtensionParams()
Sets the specific params for the next extension.
public
setExtensionParams(array<string, mixed> $params) : void
Parameters
- $params : array<string, mixed>
setMenuDeleteAction()
public
setMenuDeleteAction(array{label?: string, url?: string, attributes?: array{class: list, title: string, data-confirm: string}} $menuDeleteAction) : void
Parameters
-
$menuDeleteAction
: array{label?: string, url?: string, attributes?: array{class: list
, title: string, data-confirm: string}}
setMenuEditAction()
public
setMenuEditAction(array{label?: string, url?: string, attributes?: array{class: list, title: string}} $menuEditAction) : void
Parameters
-
$menuEditAction
: array{label?: string, url?: string, attributes?: array{class: list
, title: string}}
setMenuMovedownAction()
public
setMenuMovedownAction(array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list, title: string}} $menuMovedownAction) : void
Parameters
-
$menuMovedownAction
: array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list
, title: string}}
setMenuMoveupAction()
public
setMenuMoveupAction(array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list, title: string}} $menuMoveupAction) : void
Parameters
-
$menuMoveupAction
: array{hidden_label?: string, url?: string, icon?: string, attributes?: array{class: list
, title: string}}
setMenuStatusAction()
public
setMenuStatusAction(array{label?: string, url?: string, attributes?: array{class: list}} $menuStatusAction) : void
Parameters
-
$menuStatusAction
: array{label?: string, url?: string, attributes?: array{class: list
}}
setParam()
Sets a param.
public
setParam(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
Tags
setSubject()
Sets the subject.
public
setSubject(T $subject) : void
Parameters
- $subject : T