CSGuiListPresenter
extends CSGuiPresenter
in package
PHP wrapper for the CONTENTSERV generic JS list presenter component.
Tags
Table of Contents
- IMPL_JQUERYEASY = 'jqueryeasy'
- PROP_ACTIVESTATE = 'activeState'
- PROP_COLUMNS = 'columns'
- PROP_DEFICON_FOLDER = 'folder'
- PROP_DEFICON_PAGE = 'page'
- PROP_DEFICONS = 'icons'
- PROP_EMPTY_MESSAGE = 'emptyMessage'
- PROP_EVAL_FIELD_ISFOLDER = 'ISFOLDER'
- PROP_EVAL_FIELD_ITEMID = 'ITEMID'
- Possible EVAL String variable Names (for all events)
- PROP_EVAL_FIELD_ITEMIDLIST = 'ITEMIDLIST'
- Possible EVAL String variable Names (for all events)
- PROP_EVAL_FIELD_LABEL = 'LABEL'
- PROP_EVAL_FIELD_LISTLEVEL = 'LISTLEVEL'
- PROP_EVAL_FIELD_PARENTID = 'PARENTID'
- PROP_EVAL_FIELD_RECORDCLASS = 'RECORDCLASS'
- PROP_EVAL_FIELD_RECORDCONTEXT = 'RECORDCONTEXT'
- PROP_EVAL_FIELD_SELECTED = 'SELECTED'
- PROP_EVENT_FN = 'fn'
- PROP_EVENT_SUBTYPE = 'subType'
- PROP_EVENT_TYPE = 'type'
- PROP_EVENTS = 'events'
- PROP_FITCOLUMNS = 'fitColumns'
- PROP_GETLISTURL = 'getlisturl'
- PROP_GROUPFIELD = 'groupField'
- PROP_HEIGHT = 'height'
- PROP_IDFIELD = 'idfield'
- PROP_IMPLEMENTATION = 'implementation'
- PROP_LOADING_MESSAGE = 'loadingMessage'
- PROP_ONCLICK = 'onclick'
- PROP_ONCTXMENU = 'oncontextmenu'
- PROP_ONDBLCLICK = 'ondblclick'
- PROP_ONLOADERROR = 'onloaderror'
- PROP_ONLOADSUCCESS = 'onloadsuccess'
- PROP_ONROWSELECT = 'onrowselect'
- PROP_ONROWUNSELECT = 'onrowunselect'
- PROP_ONSELECT = 'onselect'
- PROP_ONUPDATE = 'onupdate'
- PROP_RECORDCLASS = 'recordClass'
- PROP_RECORDCONTEXT = 'recordContext'
- PROP_ROOTID = 'rootid'
- PROP_SELECTIONTYPE_CART = 'cart'
- PROP_SELECTIONTYPE_CUSTOM = 'custom'
- PROP_SHOWSELECTION = 'showSelection'
- PROP_SHOWWORKFLOWICON = 'showWorkflowIcon'
- PROP_SUBLIST_CONFIG = 'sublistconfig'
- PROP_TOOLTIP_SELECTALL = 'tooltipSelectAll'
- PROP_TOOLTIP_SELECTROW = 'tooltipSelectRow'
- PROP_VIEWMODE = 'viewmode'
- PROP_WIDTH = 'width'
- VIEWMODE_CONTENT = 'content'
- VIEWMODE_DETAILS = 'details'
- VIEWMODE_GROUPED = 'grouped'
- $isDisabled : mixed
- $isPortal : mixed
- $popup : mixed
- $popupIDField : mixed
- $popupUrl : mixed
- __construct() : mixed
- activateSearchListeningForWidgets() : mixed
- addClass() : mixed
- addColumn() : mixed
- addCSSCode() : void
- Adds a css snippet to the windows internal css code as they are used in the head Note that links to urls within the file must be relative to the forward.php
- addCSSLink() : void
- Adds a link to the windows external cascading style sheets Note that - that the admin.css is included by default - the link to the file is from the browsers point of view relative to the forward.php - that links to urls within the file are relative to the css file location.
- addEventListener() : bool
- Adds an event listener to this presenter instance.
- addJSAPI() : void
- Preloads a js API library instead of using CS.loadAPI in the code
- addJSCode() : void
- Adds a js code snippet to the windows internal js scripts as they are used in the head or directly to the component
- addJSLink() : void
- Adds a link to the windows external js scripts Note that the link to the file is from the browsers point of view relative to the forward.php
- addJSUtils() : void
- Preloads a js util library instead of using CS.loadUtils in the code
- addOnUpdateCallback() : mixed
- enableJQuery() : void
- Enables JQuery by loading all required libraries
- enableJQueryEasy() : void
- Enables JQuery easy by loading all required libraries (experimental only)
- enableJQueryPlugin() : bool
- Enables jQuery plugin.
- enableJQueryUI() : void
- Enables JQuery UI by loading all required libraries (experimental only)
- enablePluginCalls() : mixed
- Enables / disables all calls to CSGuiComponent plugins, if it is not wanted
- getConfig() : mixed
- getController() : object
- returns the controller of this gui component
- getId() : string
- Query the global presenter component's unique ID.
- getViewModeNames() : mixed
- getViewModes() : mixed
- isPortal() : bool
- Returns whether the component is used in the portal
- loadConfiguration() : mixed
- makeForwardUrl() : mixed
- makeHtml() : string
- Returns the complete HTML representation of the component
- popupAddCheckboxItem() : void
- Adds a checkbox popup item to the end of the current component's popup
- popupAddItem() : void
- Adds a popup item to the end of the current component's popup
- popupAddJavascriptFunction() : void
- Adds a Javascript method to the components Javascript which can be used to display a popup.
- popupAddSeparator() : void
- Adds a popup separator item to the end of the current component's popup
- popupAddSubMenuDefinition() : void
- Adds a definition (Icon, GroupIdentifier, GroupIndex) for a sub menu entry.
- popupEnableDebugMode() : mixed
- popupEvaluateCode() : mixed
- Provides a condition which must be true if the popup item should be available
- popupGetJavascript() : string
- Creates a javascript onContext='...' code, which can be inserted in a html component
- popupGetMultipleRequestID() : bool
- This function may be used to check whether the request is a popupRequest for multiple elements.
- popupGetRequestID() : string
- If a user request a popup the id describing the kind of request is returned here This function may also be used to check whether the request is a popupRequest.
- popupInsertItem() : void
- Adds a popup item into a specified location of the current component's popup
- popupMakeHtml() : mixed
- Creates the final popup html code
- popupRemoveAllItems() : void
- Completely removes all popup items from the component
- popupRemoveItem() : void
- Remove one items from the popup for the component
- popupRemoveItemsByNamespace() : void
- Remove multiple from the popup specified by the namespace. All items having all the passed namespaces will be removed even if they are having more than the passed.
- popupSetCharset() : string
- Sets the encoding for the popup components
- popupSetDefaultPopup() : void
- Sets the default popup for the component
- popupSetRequestID() : void
- Overwrites the id returned by popupSetRequestID
- popupSetUrl() : void
- Changes the url where the popup should be loaded from.
- popupSetVisible() : void
- Enables or disables the visiblity of the popup.
- popupUseDefaultItem() : void
- Adds a standard popup item to the end of the current component's popup
- setActiveState() : void
- Sets the initial active state (by default true).
- setColumns() : mixed
- setConfig() : mixed
- setConfigs() : mixed
- setController() : void
- sets the controller for the gui component
- setDefaultIcons() : mixed
- setDetailViewMethod() : mixed
- setDetailViewTemplate() : mixed
- setEmptyMessage() : mixed
- setHeight() : mixed
- setId() : CSGuiPresenter
- Set the global presenter component's unique ID.
- setIdFields() : mixed
- setInitialViewMode() : mixed
- setListUrl() : mixed
- setLoadingMessage() : mixed
- setOnClick() : mixed
- setOnDblClick() : mixed
- setOnLoadError() : mixed
- setOnLoadSuccess() : mixed
- setOnSelect() : mixed
- setPortalMode() : void
- Sets the component to the browsers portal
- setRecordType() : mixed
- setRootId() : mixed
- setSelectionVisible() : mixed
- setSubList() : mixed
- setTooltip() : mixed
- setWidth() : mixed
- setWorkflowIconVisible() : mixed
- throwError() : void
- Throws a CSException
Constants
IMPL_JQUERYEASY
public
mixed
IMPL_JQUERYEASY
= 'jqueryeasy'
Tags
PROP_ACTIVESTATE
public
mixed
PROP_ACTIVESTATE
= 'activeState'
Tags
PROP_COLUMNS
public
mixed
PROP_COLUMNS
= 'columns'
Tags
PROP_DEFICON_FOLDER
public
mixed
PROP_DEFICON_FOLDER
= 'folder'
Tags
PROP_DEFICON_PAGE
public
mixed
PROP_DEFICON_PAGE
= 'page'
Tags
PROP_DEFICONS
public
mixed
PROP_DEFICONS
= 'icons'
Tags
PROP_EMPTY_MESSAGE
public
mixed
PROP_EMPTY_MESSAGE
= 'emptyMessage'
Tags
PROP_EVAL_FIELD_ISFOLDER
public
mixed
PROP_EVAL_FIELD_ISFOLDER
= 'ISFOLDER'
Tags
PROP_EVAL_FIELD_ITEMID
Possible EVAL String variable Names (for all events)
public
mixed
PROP_EVAL_FIELD_ITEMID
= 'ITEMID'
Tags
PROP_EVAL_FIELD_ITEMIDLIST
Possible EVAL String variable Names (for all events)
public
mixed
PROP_EVAL_FIELD_ITEMIDLIST
= 'ITEMIDLIST'
Tags
PROP_EVAL_FIELD_LABEL
public
mixed
PROP_EVAL_FIELD_LABEL
= 'LABEL'
Tags
PROP_EVAL_FIELD_LISTLEVEL
public
mixed
PROP_EVAL_FIELD_LISTLEVEL
= 'LISTLEVEL'
Tags
PROP_EVAL_FIELD_PARENTID
public
mixed
PROP_EVAL_FIELD_PARENTID
= 'PARENTID'
Tags
PROP_EVAL_FIELD_RECORDCLASS
public
mixed
PROP_EVAL_FIELD_RECORDCLASS
= 'RECORDCLASS'
Tags
PROP_EVAL_FIELD_RECORDCONTEXT
public
mixed
PROP_EVAL_FIELD_RECORDCONTEXT
= 'RECORDCONTEXT'
Tags
PROP_EVAL_FIELD_SELECTED
public
mixed
PROP_EVAL_FIELD_SELECTED
= 'SELECTED'
Tags
PROP_EVENT_FN
public
mixed
PROP_EVENT_FN
= 'fn'
Tags
PROP_EVENT_SUBTYPE
public
mixed
PROP_EVENT_SUBTYPE
= 'subType'
Tags
PROP_EVENT_TYPE
public
mixed
PROP_EVENT_TYPE
= 'type'
Tags
PROP_EVENTS
public
mixed
PROP_EVENTS
= 'events'
Tags
PROP_FITCOLUMNS
public
mixed
PROP_FITCOLUMNS
= 'fitColumns'
Tags
PROP_GETLISTURL
public
mixed
PROP_GETLISTURL
= 'getlisturl'
Tags
PROP_GROUPFIELD
public
mixed
PROP_GROUPFIELD
= 'groupField'
Tags
PROP_HEIGHT
public
mixed
PROP_HEIGHT
= 'height'
Tags
PROP_IDFIELD
public
mixed
PROP_IDFIELD
= 'idfield'
Tags
PROP_IMPLEMENTATION
public
mixed
PROP_IMPLEMENTATION
= 'implementation'
Tags
PROP_LOADING_MESSAGE
public
mixed
PROP_LOADING_MESSAGE
= 'loadingMessage'
Tags
PROP_ONCLICK
public
mixed
PROP_ONCLICK
= 'onclick'
Tags
PROP_ONCTXMENU
public
mixed
PROP_ONCTXMENU
= 'oncontextmenu'
Tags
PROP_ONDBLCLICK
public
mixed
PROP_ONDBLCLICK
= 'ondblclick'
Tags
PROP_ONLOADERROR
public
mixed
PROP_ONLOADERROR
= 'onloaderror'
Tags
PROP_ONLOADSUCCESS
public
mixed
PROP_ONLOADSUCCESS
= 'onloadsuccess'
Tags
PROP_ONROWSELECT
public
mixed
PROP_ONROWSELECT
= 'onrowselect'
Tags
PROP_ONROWUNSELECT
public
mixed
PROP_ONROWUNSELECT
= 'onrowunselect'
Tags
PROP_ONSELECT
public
mixed
PROP_ONSELECT
= 'onselect'
Tags
PROP_ONUPDATE
public
mixed
PROP_ONUPDATE
= 'onupdate'
Tags
PROP_RECORDCLASS
public
mixed
PROP_RECORDCLASS
= 'recordClass'
Tags
PROP_RECORDCONTEXT
public
mixed
PROP_RECORDCONTEXT
= 'recordContext'
Tags
PROP_ROOTID
public
mixed
PROP_ROOTID
= 'rootid'
Tags
PROP_SELECTIONTYPE_CART
public
mixed
PROP_SELECTIONTYPE_CART
= 'cart'
Tags
PROP_SELECTIONTYPE_CUSTOM
public
mixed
PROP_SELECTIONTYPE_CUSTOM
= 'custom'
Tags
PROP_SHOWSELECTION
public
mixed
PROP_SHOWSELECTION
= 'showSelection'
Tags
PROP_SHOWWORKFLOWICON
public
mixed
PROP_SHOWWORKFLOWICON
= 'showWorkflowIcon'
Tags
PROP_SUBLIST_CONFIG
public
mixed
PROP_SUBLIST_CONFIG
= 'sublistconfig'
Tags
PROP_TOOLTIP_SELECTALL
public
mixed
PROP_TOOLTIP_SELECTALL
= 'tooltipSelectAll'
Tags
PROP_TOOLTIP_SELECTROW
public
mixed
PROP_TOOLTIP_SELECTROW
= 'tooltipSelectRow'
Tags
PROP_VIEWMODE
public
mixed
PROP_VIEWMODE
= 'viewmode'
Tags
PROP_WIDTH
public
mixed
PROP_WIDTH
= 'width'
Tags
VIEWMODE_CONTENT
public
mixed
VIEWMODE_CONTENT
= 'content'
Tags
VIEWMODE_DETAILS
public
mixed
VIEWMODE_DETAILS
= 'details'
Tags
VIEWMODE_GROUPED
public
mixed
VIEWMODE_GROUPED
= 'grouped'
Tags
Properties
$isDisabled
public
mixed
$isDisabled
= \false
Tags
$isPortal
public
static mixed
$isPortal
= \false
Tags
$popup
public
mixed
$popup
Tags
$popupIDField
public
mixed
$popupIDField
Tags
$popupUrl
public
mixed
$popupUrl
Tags
Methods
__construct()
public
__construct(string $sDataSourceUrl[, string $sId = '' ]) : mixed
Parameters
- $sDataSourceUrl : string
-
The data source REST service URL to pass the ID to, e.g. "admin/rest/itemdatasource/list/Pdmarticle".
- $sId : string = ''
-
the internal ID of this component
Tags
Return values
mixed —activateSearchListeningForWidgets()
public
activateSearchListeningForWidgets(mixed $sSearchType, mixed $sSubType) : mixed
Parameters
- $sSearchType : mixed
- $sSubType : mixed
Tags
Return values
mixed —addClass()
public
addClass(mixed $sClass) : mixed
Parameters
- $sClass : mixed
Tags
Return values
mixed —addColumn()
public
addColumn(mixed $sFieldName[, mixed $sLabel = '' ][, mixed $iIndex = NULL ]) : mixed
Parameters
- $sFieldName : mixed
- $sLabel : mixed = ''
- $iIndex : mixed = NULL
Tags
Return values
mixed —addCSSCode()
Adds a css snippet to the windows internal css code as they are used in the head Note that links to urls within the file must be relative to the forward.php
public
addCSSCode(string $sCode) : void
Parameters
- $sCode : string
-
the code of the css without any <style> elements
Tags
Return values
void —addCSSLink()
Adds a link to the windows external cascading style sheets Note that - that the admin.css is included by default - the link to the file is from the browsers point of view relative to the forward.php - that links to urls within the file are relative to the css file location.
public
addCSSLink(string $sCsslink) : void
Parameters
- $sCsslink : string
-
the href of the css file
Tags
Return values
void —addEventListener()
Adds an event listener to this presenter instance.
public
addEventListener(string $sType, string|array<string|int, mixed> $sSubType, string $sCallbackExpression) : bool
Example: $oPresenter->addJSCode(' function reloadMyPresenter(event) { // {CSEvent} event - the current event (see CSEvent) which occurred. var sEventType = event.getType(); if (sEventType == "myEvent") { this.reload(); // 'this' - references to the own presenter, So only the created (this) presenter will be reloaded. } } ');
$oPresenter->addEventListener('myEvent', 'myEventSubType', 'reloadMyPresenter');
If you have multiple presenter, just create a unique JS function for each presenter.
$sJsOtherPresenterReloadFnName = $oOtherPresenter->getID() . 'reloadMyPresenter'; $oOtherPresenter->addJSCode(' function ' . $sJsOtherPresenterReloadFnName . '(event) { // do stuff only for $oOtherPresenter } ');
// give the callback function a unique name $oOtherPresenter->addEventListener('myEvent', 'myEventSubType', $sJsOtherPresenterReloadFnName);
Parameters
- $sType : string
-
A event type.
- $sSubType : string|array<string|int, mixed>
-
A event subtype
- $sCallbackExpression : string
-
A name of the JS function which should be called. The given function must be added with addJSCode()-method previously. The given function will be called by the framework, changes the 'this' reference to the own presenter and forwards the event object to the function as first parameter.
Tags
Return values
bool —Whenever an event was added successfully or not.
addJSAPI()
Preloads a js API library instead of using CS.loadAPI in the code
public
addJSAPI(string $api) : void
Parameters
- $api : string
-
the name of the CS API library in the ../admin/modules/[MODULE]/CS[MODULE].js directory
Tags
Return values
void —addJSCode()
Adds a js code snippet to the windows internal js scripts as they are used in the head or directly to the component
public
addJSCode(string $sCode) : void
Parameters
- $sCode : string
-
the code of the js without any <javasctipt> elements
Tags
Return values
void —addJSLink()
Adds a link to the windows external js scripts Note that the link to the file is from the browsers point of view relative to the forward.php
public
addJSLink(string $sHref) : void
Parameters
- $sHref : string
-
the href of the js
Tags
Return values
void —addJSUtils()
Preloads a js util library instead of using CS.loadUtils in the code
public
addJSUtils(string $util) : void
Parameters
- $util : string
-
the name of the CS Util library in the ../admin/core/utils/js/ directory
Tags
Return values
void —addOnUpdateCallback()
public
addOnUpdateCallback(mixed $sCallbackExpression) : mixed
Parameters
- $sCallbackExpression : mixed
Tags
Return values
mixed —enableJQuery()
Enables JQuery by loading all required libraries
public
enableJQuery() : void
Tags
Return values
void —enableJQueryEasy()
Enables JQuery easy by loading all required libraries (experimental only)
public
enableJQueryEasy() : void
Tags
Return values
void —enableJQueryPlugin()
Enables jQuery plugin.
public
enableJQueryPlugin(string $sPluginName) : bool
For possible plugins see ADMIN_LOCAL/lib/javascript/jquery/plugins subfolder.
Parameters
- $sPluginName : string
-
The name of the jquery plugin (case sensitive) and without the "jquery." prefix. To load the jquery.cookie.js plugin give only "cookie" as param.
Tags
Return values
bool —Whenever the plugin path was found or not.
enableJQueryUI()
Enables JQuery UI by loading all required libraries (experimental only)
public
enableJQueryUI() : void
Tags
Return values
void —enablePluginCalls()
Enables / disables all calls to CSGuiComponent plugins, if it is not wanted
public
static enablePluginCalls([bool $enabled = false ]) : mixed
Parameters
- $enabled : bool = false
-
whether plugin calls may be used
Tags
Return values
mixed —getConfig()
public
getConfig([mixed $sKey = NULL ][, mixed $mDefault = NULL ]) : mixed
Parameters
- $sKey : mixed = NULL
- $mDefault : mixed = NULL
Tags
Return values
mixed —getController()
returns the controller of this gui component
public
getController() : object
Tags
Return values
object —the controller of the gui component
getId()
Query the global presenter component's unique ID.
public
getId() : string
Tags
Return values
string —The global component ID, used to uniquely identify the it within the generated scripts/HTML.
getViewModeNames()
public
getViewModeNames() : mixed
Tags
Return values
mixed —getViewModes()
public
getViewModes() : mixed
Tags
Return values
mixed —isPortal()
Returns whether the component is used in the portal
public
static isPortal() : bool
Tags
Return values
bool —whether the portal mode is activated
loadConfiguration()
public
loadConfiguration(mixed $sConfigFileName) : mixed
Parameters
- $sConfigFileName : mixed
Tags
Return values
mixed —makeForwardUrl()
public
static makeForwardUrl(mixed $url[, mixed $useRequestParams = array() ]) : mixed
Parameters
- $url : mixed
- $useRequestParams : mixed = array()
Tags
Return values
mixed —makeHtml()
Returns the complete HTML representation of the component
public
makeHtml() : string
May be called only once for each object in most cases.
Tags
Return values
string —some html code for JS, CSS tags
popupAddCheckboxItem()
Adds a checkbox popup item to the end of the current component's popup
public
popupAddCheckboxItem(mixed $sLabel, mixed $sJavascript[, mixed $bIsEnabled = true ][, mixed $bIsSelected = false ][, mixed $sAccessKey = '' ][, mixed $bEvalCondition = true ][, mixed $mNamespaces = array() ][, mixed $sGroupIdentifier = '' ], mixed $iGroupIndex) : void
Parameters
- $sLabel : mixed
- $sJavascript : mixed
- $bIsEnabled : mixed = true
- $bIsSelected : mixed = false
- $sAccessKey : mixed = ''
- $bEvalCondition : mixed = true
- $mNamespaces : mixed = array()
- $sGroupIdentifier : mixed = ''
- $iGroupIndex : mixed
Tags
Return values
void —popupAddItem()
Adds a popup item to the end of the current component's popup
public
popupAddItem(string $sLabel[, string $sJavascript = '' ][, int $bIsEnabled = true ][, string $sIconPath = '' ][, string $sAccessKey = '' ][, bool $bEvalCondition = true ][, array<string|int, mixed>|string $mNamespaces = array() ][, string $sGroupIdentifier = '' ], int $iGroupIndex) : void
Parameters
- $sLabel : string
-
label of the popup item. It can use '//' to create a submenu, e.g. 'submenu_label//sub_submenu_label//label'
- $sJavascript : string = ''
-
Javascript code to call with the popup item
- $bIsEnabled : int = true
-
can be false if the popup item should be visible but disabled
- $sIconPath : string = ''
-
Image of the item relative to the admin/images/popup/ directory
- $sAccessKey : string = ''
-
Keyboard access key of the popup item
- $bEvalCondition : bool = true
-
If the condition should be evaluated.
- $mNamespaces : array<string|int, mixed>|string = array()
-
The namespace for the button like "workflow"
- $sGroupIdentifier : string = ''
-
The identifier to add the popup item to a group, which has separator at the beginning and at the end.
- $iGroupIndex : int
-
The index of the group. The index will be used to order the groups. The lowest index will be taken of all popup items inside of a group.
Tags
Return values
void —popupAddJavascriptFunction()
Adds a Javascript method to the components Javascript which can be used to display a popup.
public
popupAddJavascriptFunction([string $jsName = 'displayComponentPopup' ]) : void
It can be called with the given name and the requested POPUPID and event (event object) as argument, e.g. displayComponentPopup(ID, event)
Parameters
- $jsName : string = 'displayComponentPopup'
-
the name of the Javascript method, if it should be different from the standard 'displayComponentPopup'
Tags
Return values
void —popupAddSeparator()
Adds a popup separator item to the end of the current component's popup
public
popupAddSeparator([string $evalCondition = true ][, string $subMenu = '' ]) : void
Parameters
- $evalCondition : string = true
-
optional php condition to be evaluated as true to let the popup item be available
- $subMenu : string = ''
-
optional sub menu the separator should be placed within. It can use '//' to add the seperator within a submenu, e.g. 'submenu_label//subsubmenu_label'
Tags
Return values
void —popupAddSubMenuDefinition()
Adds a definition (Icon, GroupIdentifier, GroupIndex) for a sub menu entry.
public
popupAddSubMenuDefinition(string $sSubMenuLabel, string $sIcon[, string $sGroupIdentifier = '' ], int $iGroupIndex) : void
Parameters
- $sSubMenuLabel : string
-
The target sub menu label
- $sIcon : string
-
THe icon of the sub menu.
- $sGroupIdentifier : string = ''
-
The group identifier
- $iGroupIndex : int
-
The index of the group.
Tags
Return values
void —popupEnableDebugMode()
public
popupEnableDebugMode() : mixed
Tags
Return values
mixed —popupEvaluateCode()
Provides a condition which must be true if the popup item should be available
public
popupEvaluateCode(mixed $evalCode) : mixed
Sometimes it is necessary to evaluate further code to define a $evalCondition. As the condition only returns one value, this can not be done there. Therefore any phpCode can be evaluated using the popupEvaluateCode method. Here e.g. conditions can be stored in variables which can be used in the $evalCondition later. {RecordID} can be used to get the id of the current selected item
Parameters
- $evalCode : mixed
Tags
Return values
mixed —popupGetJavascript()
Creates a javascript onContext='...' code, which can be inserted in a html component
public
popupGetJavascript(string $id[, string $innerHtml = "" ][, string $elementName = 'span' ][, string $embedAttribute = 'oncontextmenu' ][, string $additionalAttributes = "" ][, string $popupUrl = '' ][, string $popupIDField = '' ][, string $jsCode = '' ]) : string
Parameters
- $id : string
-
The value which will can be received using the popupGetRequestID() method
- $innerHtml : string = ""
-
The content of the optional html element is not empty. If this value is not set the $id is used instead
- $elementName : string = 'span'
-
An optional html element name which will contain the attribute
- $embedAttribute : string = 'oncontextmenu'
-
The attribute which should contain the JavaScript code
- $additionalAttributes : string = ""
-
Additional attributes which should be additionally added to the oncontext command
- $popupUrl : string = ''
-
Overwrites the standard url where the popup is defined
- $popupIDField : string = ''
-
Overwrites the standard IDField for the popup which will be added to the request and is necessary to get the results using the popupGetRequestID method if it has been modified
- $jsCode : string = ''
-
The JavaScript code which should be evaluated before the contextmenu is shown
Tags
Return values
string —The JavaScript code or a complete html element which will create the popup request
popupGetMultipleRequestID()
This function may be used to check whether the request is a popupRequest for multiple elements.
public
popupGetMultipleRequestID() : bool
Tags
Return values
bool —whether a popup request for multiple items have been sent
popupGetRequestID()
If a user request a popup the id describing the kind of request is returned here This function may also be used to check whether the request is a popupRequest.
public
popupGetRequestID() : string
Tags
Return values
string —the ID for which a popup is requested
popupInsertItem()
Adds a popup item into a specified location of the current component's popup
public
popupInsertItem(mixed $mIndex, mixed $sLabel[, mixed $sJavascript = '' ][, mixed $bIsEnabled = true ][, mixed $sIconPath = '' ][, mixed $sAccessKey = '' ][, mixed $bEvalCondition = true ][, mixed $mNamespaces = array() ][, mixed $sGroupIdentifier = '' ], mixed $iGroupIndex) : void
Parameters
- $mIndex : mixed
- $sLabel : mixed
- $sJavascript : mixed = ''
- $bIsEnabled : mixed = true
- $sIconPath : mixed = ''
- $sAccessKey : mixed = ''
- $bEvalCondition : mixed = true
- $mNamespaces : mixed = array()
- $sGroupIdentifier : mixed = ''
- $iGroupIndex : mixed
Tags
Return values
void —popupMakeHtml()
Creates the final popup html code
public
popupMakeHtml(mixed $PopupID) : mixed
Parameters
- $PopupID : mixed
Tags
Return values
mixed —popupRemoveAllItems()
Completely removes all popup items from the component
public
popupRemoveAllItems([array<string|int, mixed> $keep = array() ][, bool $recursive = false ]) : void
Parameters
- $keep : array<string|int, mixed> = array()
-
the labels of the items which may be kept
- $recursive : bool = false
-
whether this action should be applied to all subcomponents as subtrees in CSGuiMixedTrees
Tags
Return values
void —popupRemoveItem()
Remove one items from the popup for the component
public
popupRemoveItem(string $label[, string|bool $evalCondition = true ][, array<string|int, mixed>|string $aNamespaces = array() ]) : void
Parameters
- $label : string
-
label of the popup item
- $evalCondition : string|bool = true
-
optional php condition to be evaluated as true to let the popup item be available {RecordID} can be used to get the id of the current selected item
- $aNamespaces : array<string|int, mixed>|string = array()
-
Either a simple string for a namespace like "workflow" or an array for further specification like array("Workflow", "123"). All items having the same label and all namespaces passed set (even if they are having more) will be removed.
Tags
Return values
void —popupRemoveItemsByNamespace()
Remove multiple from the popup specified by the namespace. All items having all the passed namespaces will be removed even if they are having more than the passed.
public
popupRemoveItemsByNamespace([array<string|int, mixed> $aNamespaces = array() ]) : void
Parameters
- $aNamespaces : array<string|int, mixed> = array()
-
An array containing all the defined namespaces for the popup items to be removed
Tags
Return values
void —popupSetCharset()
Sets the encoding for the popup components
public
popupSetCharset(mixed $charset) : string
Parameters
- $charset : mixed
Tags
Return values
string —$charset the new characterset
popupSetDefaultPopup()
Sets the default popup for the component
public
popupSetDefaultPopup(CSGuiPopup $popup) : void
Parameters
- $popup : CSGuiPopup
-
Popup object to use as popup for the component
Tags
Return values
void —popupSetRequestID()
Overwrites the id returned by popupSetRequestID
public
popupSetRequestID(string $id) : void
Parameters
- $id : string
-
the value of the id to overwrite
Tags
Return values
void —popupSetUrl()
Changes the url where the popup should be loaded from.
public
popupSetUrl([string $popupUrl = '' ][, string $idField = 'POPUP_ID' ][, bool $recursive = false ]) : void
It can be set if the pure forward name is not sufficient or another file should be used for a popup request This is an important option to add additional GET parameters, which should be available again for popups You can add additionalParameters to the forward url using the & seperator, e.g 'destination.php¶m1=true'
Parameters
- $popupUrl : string = ''
-
the url where the popup is defined
- $idField : string = 'POPUP_ID'
-
the IDField for the popup which will be added to the request and is necessary to get the results using the popupGetRequestID method if it has been modified
- $recursive : bool = false
-
whether this action should be applied to all subcomponents as subtrees in CSGuiMixedTrees
Tags
Return values
void —popupSetVisible()
Enables or disables the visiblity of the popup.
public
popupSetVisible([bool $visibility = null ]) : void
If a popupAddItem is called before, the popup is automatically set to visible . If you only create the popup menu when recieving the popupGetRequestID parameter you have to enable the popup menu manually. You can even hide the popup completly be setting the $visibility to false
Parameters
- $visibility : bool = null
-
whether the component has a visible popup menu
Tags
Return values
void —popupUseDefaultItem()
Adds a standard popup item to the end of the current component's popup
public
popupUseDefaultItem(string $label[, string|bool $evalCondition = true ]) : void
The popupitems defined using the popupSetDefaultPopup can be reused after popupRemoveAllItems has been called. This offers the possibility to reuse working popupitems in a userdefined popupmenu The type of popup item which should be used is defined by the $label parameter. This label represents the label of the original item
Parameters
- $label : string
-
label of the popup item
- $evalCondition : string|bool = true
-
php condition to be evaluated as true to let the popup item be available
Tags
Return values
void —setActiveState()
Sets the initial active state (by default true).
public
setActiveState(bool $bActiveOrNot) : void
If set to true (default) the presenter is immediacy (ready) visible. If set to false the presenter will proceed the same steps but onLoadSuccess the designed presenter will be hidden.
Parameters
- $bActiveOrNot : bool
-
Whenever the initial active state should be true or false
Tags
Return values
void —setColumns()
public
setColumns(mixed $aColumnProps) : mixed
Parameters
- $aColumnProps : mixed
Tags
Return values
mixed —setConfig()
public
setConfig(mixed $sKey, mixed $mValue) : mixed
Parameters
- $sKey : mixed
- $mValue : mixed
Tags
Return values
mixed —setConfigs()
public
setConfigs(mixed $amValues) : mixed
Parameters
- $amValues : mixed
Tags
Return values
mixed —setController()
sets the controller for the gui component
public
setController(object $oController) : void
Parameters
- $oController : object
-
the controller for the gui component
Tags
Return values
void —setDefaultIcons()
public
setDefaultIcons(mixed $asIconUrls) : mixed
Parameters
- $asIconUrls : mixed
Tags
Return values
mixed —setDetailViewMethod()
public
setDetailViewMethod(mixed $sDetailViewMethod) : mixed
Parameters
- $sDetailViewMethod : mixed
Tags
Return values
mixed —setDetailViewTemplate()
public
setDetailViewTemplate(mixed $sDetailViewTemplate) : mixed
Parameters
- $sDetailViewTemplate : mixed
Tags
Return values
mixed —setEmptyMessage()
public
setEmptyMessage(mixed $sMessage) : mixed
Parameters
- $sMessage : mixed
Tags
Return values
mixed —setHeight()
public
setHeight(mixed $mHeight) : mixed
Parameters
- $mHeight : mixed
Tags
Return values
mixed —setId()
Set the global presenter component's unique ID.
public
setId(string $sId) : CSGuiPresenter
Parameters
- $sId : string
-
The global component ID, used to uniquely identify the it within the generated scripts/HTML.
Tags
Return values
CSGuiPresenter —The current presenter instance.
setIdFields()
public
setIdFields(mixed $asIdFieldNames) : mixed
Parameters
- $asIdFieldNames : mixed
Tags
Return values
mixed —setInitialViewMode()
public
setInitialViewMode(mixed $sViewMode) : mixed
Parameters
- $sViewMode : mixed
Tags
Return values
mixed —setListUrl()
public
setListUrl(mixed $sDataSourceUrls) : mixed
Parameters
- $sDataSourceUrls : mixed
Tags
Return values
mixed —setLoadingMessage()
public
setLoadingMessage(mixed $sMessage) : mixed
Parameters
- $sMessage : mixed
Tags
Return values
mixed —setOnClick()
public
setOnClick(mixed $sJsCode) : mixed
Parameters
- $sJsCode : mixed
Tags
Return values
mixed —setOnDblClick()
public
setOnDblClick(mixed $sJsCode) : mixed
Parameters
- $sJsCode : mixed
Tags
Return values
mixed —setOnLoadError()
public
setOnLoadError(mixed $sJsCode) : mixed
Parameters
- $sJsCode : mixed
Tags
Return values
mixed —setOnLoadSuccess()
public
setOnLoadSuccess(mixed $sJsCode) : mixed
Parameters
- $sJsCode : mixed
Tags
Return values
mixed —setOnSelect()
public
setOnSelect(mixed $sJsCode) : mixed
Parameters
- $sJsCode : mixed
Tags
Return values
mixed —setPortalMode()
Sets the component to the browsers portal
public
static setPortalMode([mixed $isPortal = true ]) : void
Parameters
- $isPortal : mixed = true
Tags
Return values
void —setRecordType()
public
setRecordType(mixed $sRecordClass[, mixed $sRecordContext = NULL ]) : mixed
Parameters
- $sRecordClass : mixed
- $sRecordContext : mixed = NULL
Tags
Return values
mixed —setRootId()
public
setRootId(mixed $iRootId) : mixed
Parameters
- $iRootId : mixed
Tags
Return values
mixed —setSelectionVisible()
public
setSelectionVisible([mixed $mType = self::PROP_SELECTIONTYPE_CUSTOM ]) : mixed
Parameters
- $mType : mixed = self::PROP_SELECTIONTYPE_CUSTOM
Tags
Return values
mixed —setSubList()
public
setSubList(CSGuiListPresenter $oSubList) : mixed
Parameters
- $oSubList : CSGuiListPresenter
Tags
Return values
mixed —setTooltip()
public
setTooltip(mixed $sTooltipText[, mixed $sTooltipId = NULL ]) : mixed
Parameters
- $sTooltipText : mixed
- $sTooltipId : mixed = NULL
Tags
Return values
mixed —setWidth()
public
setWidth(mixed $mWidth) : mixed
Parameters
- $mWidth : mixed
Tags
Return values
mixed —setWorkflowIconVisible()
public
setWorkflowIconVisible([mixed $bShow = FALSE ]) : mixed
Parameters
- $bShow : mixed = FALSE
Tags
Return values
mixed —throwError()
Throws a CSException
public
static throwError(string $sMessage, int $iCode) : void
Parameters
- $sMessage : string
- $iCode : int
