Generate a separator / divider in a widget
string
adminwidgetSeparator
()
Generates a text-row in a widget
string
adminwidgetText
(string $strText)
Returns a table filled with infos
string
dataTable
(mixed $arrHeader, mixed $arrValues)
-
mixed
$arrHeader: the first row to name the columns
-
mixed
$arrValues: every entry is one row
Returns a divider to split up a page in logical sections
string
divider
([string $strClass = "divider"])
Returns the code to finish the opened list
string
dragableListFooter
(string $strListId)
Returns the htmlcode needed to start a proper list, supporting drag n drop to reorder list-items
string
dragableListHeader
(string $strListId, [bool $bitOnlySameTable = false])
-
string
$strListId
-
bool
$bitOnlySameTable: dropping only allowed within the same table or also in other tables
Returns the tags to close an open form
string
formClose
([ $bitIncludePeFields = true])
Returns a simple Date-Form
string
formDateSimple
([string $strName = ""], [int $intDay = ""], [int $intMonth = ""], [int $intYear = ""], [string $strTitle = ""], [bool $bitToday = true], [string $strClass = "inputDate"])
-
string
$strName
-
int
$intDay
-
int
$intMonth
-
int
$intYear
-
string
$strTitle
-
bool
$bitToday: If set true, the current date will be inserted, if no date is passed
-
string
$strClass
Returns a simple date-form element. By default used to enter a date without a time.
string
formDateSingle
(
string $strName,
string $strTitle,
class_date $objDateToShow, [
string $strClass =
"inputDate"], [
boolean $bitWithTime =
false])
-
string
$strName
-
string
$strTitle
-
class_date
$objDateToShow
-
string
$strClass
-
boolean
$bitWithTime
Creates the header needed to open a form-element
string
formHeader
(string $strAction, [string $strName = ""], [ $strEncoding = ""])
-
string
$strAction
-
string
$strName
-
$strEncoding
Returns a headline in a form
string
formHeadline
(string $strText, [string $strClass = "heading"])
-
string
$strText
-
string
$strClass
Returns a checkbox
string
formInputCheckbox
(string $strName, string $strTitle, [bool $bitChecked = false], [string $strClass = ""])
-
string
$strName
-
string
$strTitle
-
bool
$bitChecked
-
string
$strClass
Returning a complete Dropdown
string
formInputDropdown
(string $strName, mixed $arrKeyValues, [string $strTitle = ""], [string $strKeySelected = ""], [string $strClass = "inputDropdown"], [bool $bitEnabled = true], [string $strAddons = ""])
-
string
$strName
-
mixed
$arrKeyValues
-
string
$strTitle
-
string
$strKeySelected
-
string
$strClass
-
bool
$bitEnabled
-
string
$strAddons
Returns a regular hidden-input-field
string
formInputHidden
(string $strName, [string $strValue = ""])
-
string
$strName
-
string
$strValue
Returns a regular text-input field
string
formInputPageSelector
(string $strName, [string $strTitle = ""], [string $strValue = ""], [string $strClass = "inputText"])
-
string
$strName
-
string
$strTitle
-
string
$strValue
-
string
$strClass
Returns a password text-input field
string
formInputPassword
(string $strName, [string $strTitle = ""], [string $strValue = ""], [ $strClass = "inputText"])
-
string
$strName
-
string
$strTitle
-
string
$strValue
-
$strClass
Returns a button to submit a form
string
formInputSubmit
([string $strValue = "Submit"], [string $strName = "Submit"], [string $strEventhandler = ""], [ $strClass = "inputSubmit"])
-
string
$strValue
-
string
$strName
-
string
$strEventhandler
-
$strClass
Returns a regular text-input field
string
formInputText
(string $strName, [string $strTitle = ""], [string $strValue = ""], [ $strClass = "inputText"], [string $strOpener = ""], [bool $bitReadonly = false])
-
string
$strName
-
string
$strTitle
-
string
$strValue
-
string
$strOpener
-
bool
$bitReadonly
-
$strClass
Returns a text-input field as textarea
string
formInputTextArea
(string $strName, [string $strTitle = ""], [string $strValue = ""], [ $strClass = "inputTextarea"])
-
string
$strName
-
string
$strTitle
-
string
$strValue
-
$strClass
Returns a input-file element
string
formInputUpload
(string $strName, [string $strTitle = ""], [string $strClass = "inputText"], bool $bitMultiple)
-
string
$strName
-
string
$strTitle
-
bool
$bitMultiple
-
string
$strClass
Returns a input-file element for uploading multiple files with progress bar
string
formInputUploadFlash
(string $strName, string $strTitle, string $strAllowedFileTypes, [bool $bitMultiple = false], [bool $bitFallback = false])
-
string
$strName
-
string
$strTitle
-
string
$strAllowedFileTypes
-
bool
$bitMultiple
-
bool
$bitFallback
Creates a foldable wrapper around optional form fields
string
formOptionalElementsWrapper
(string $strContent, [string $strTitle = ""], [bool $bitVisible = false])
-
string
$strContent
-
string
$strTitle
-
bool
$bitVisible
Returns a single TextRow in a form
string
formTextRow
(string $strText, [ $strClass = "text"])
-
string
$strText
-
$strClass
Returns a text-field using the cool WYSIWYG editor You can use the different toolbar sets defined in /admin/scripts/ckeditor/config.js
string
formWysiwygEditor
([string $strName = "inhalt"], [string $strTitle = ""], [string $strContent = ""], [string $strToolbarset = "standard"])
-
string
$strName
-
string
$strTitle
-
string
$strContent
-
string
$strToolbarset
Generates the moduleaction-navigation in the admin-area
string
getAdminModuleActionNavi
( $arrActions, mixed $arrModules)
-
mixed
$arrModules
-
$arrActions
Generates the module-navigation in the admin-area
string
getAdminModuleNavi
(mixed $arrModules, string $strCurrent)
-
mixed
$arrModules
-
string
$strCurrent
Builds the widget out of its main components.
string
getAdminwidget
(string $strSystemid, string $strName, string $strContent, [string $strEditLink = ""], [string $strDeleteLink = ""])
-
string
$strSystemid
-
string
$strName
-
string
$strContent
-
string
$strEditLink
-
string
$strDeleteLink
A content toolbar can be used to group a subset of actions linking different views
string
getContentToolbar
(mixed $arrEntries, [int $intActiveEntry = -1])
-
mixed
$arrEntries
-
int
$intActiveEntry: Array-counting, so first element is 0, last is array-length - 1
The footer of a dashboard column.
string
getDashboardColumnFooter
()
Generates the header for a column on the dashboard.
Inits the ajax-componentes for this list
string
getDashboardColumnHeader
(string $strColumnId)
The widget-enclose is the code-fragment to be built around the widget itself.
Used to handle the widget on the current column.
string
getDashboardWidgetEncloser
(string $strDashboardEntryId, string $strWidgetContent)
-
string
$strDashboardEntryId
-
string
$strWidgetContent
Creates a fieldset to structure elements
string
getFieldset
(string $strTitle, string $strContent, [string $strClass = "fieldset"])
-
string
$strTitle
-
string
$strContent
-
string
$strClass
Creates the page to view & manipulate image.
string
getFilemanagerImageDetails
(array $arrContent)
Returns a infox used by the filemanager
string
getFilemanagerInfoBox
(mixed $arrContent)
Container for graphs, e.g. used by stats.
string
getGraphContainer
(string $strImgSrc)
Creates the code for one button for a specified language, part of a language switch
string
getLanguageButton
(string $strLanguage, string $strLanguageName, [bool $bitActive = false])
-
string
$strLanguage
-
string
$strLanguageName: The full name of the language
-
bool
$bitActive
Creates the sourrounding code of a language switch, places the buttons
string
getLanguageSwitch
(string $strLanguageButtons)
-
string
$strLanguageButtons
Creates the mechanism to fold parts of the site / make them visible or invisible
mixed
getLayoutFolder
(string $strContent, string $strLinkText, [bool $bitVisible = false], [string $strCallbackVisible = ""], [string $strCallbackInvisible = ""])
-
string
$strContent
-
string
$strLinkText: The text / content,
-
bool
$bitVisible
-
string
$strCallbackVisible: JS function
-
string
$strCallbackInvisible: JS function
Creates the mechanism to fold parts of the site / make them vivsible or invisible
string
getLayoutFolderPic
(string $strContent, [string $strLinkText = ""], [string $strImageVisible = "icon_folderOpen.gif"], [string $strImageInvisible = "icon_folderClosed.gif"], [bool $bitVisible = true])
-
string
$strContent
-
string
$strLinkText: Mouseovertext
-
string
$strImageVisible: clickable
-
string
$strImageInvisible: clickable
-
bool
$bitVisible
void
getMainDashboard
( $arrColumn)
Returns a infobox about the page being edited
string
getPageInfobox
(mixed $arrContent)
Creates a pageview
mixed
getPageview
(array $arrData, int $intCurrentpage, string $strModule, string $strAction, [string $strLinkAdd = ""], [int $intElementPerPage = 15])
-
array
$arrData
-
int
$intCurrentpage
-
string
$strModule
-
string
$strAction
-
string
$strLinkAdd
-
int
$intElementPerPage
Generates the layout for a small navigation
string
getPathNavigation
(mixed $arrEntries)
Returns a simple
string
getPreformatted
(array $arrLines, [int $nrRows = 0])
-
array
$arrLines
-
int
$nrRows: number of rows to display
Creates a pageview
mixed
getSimplePageview
(
class_array_section_iterator $objArraySectionIterator,
string $strModule,
string $strAction, [
string $strLinkAdd =
""])
Returns a single TextRow
unknown
getTextRow
(unknown_type $strText, [ $strClass = "text"])
-
unknown_type
$strText
-
$strClass
Create a tree-view UI-element. Please not, that currently it's only possible to use one tree-view per page.
The nodes are loaded via AJAX by calling the method passed as the first arg. The optional third param is an ordered list of systemid identifying the nodes to expand initially.
string
getTreeview
(string $strLoadNodeDataFunction, string $strRootNodeSystemid, [array $arrNodesToExpand = array()], [string $strSideContent = ""], [string $strRootNodeTitle = " "])
-
string
$strLoadNodeDataFunction
-
string
$strRootNodeSystemid
-
array
$arrNodesToExpand
-
string
$strSideContent
-
string
$strRootNodeTitle
Generates a list of errors found by the form-validation
string
getValidationErrors
( $objCalling, mixed $arrErrors)
-
mixed
$arrErrors
-
$objCalling
Creates a modal dialog on the page. By default, the dialog is hidden, so has to be set visible.
The type-param decides what template is used for the dialog-layout. The name of the dialog is built via jsDialog_$intTypeNr. Set the contents via js-calls.
string
jsDialog
(int $intDialogType)
-
int
$intDialogType: (0 = regular modal dialog, 1 = confirmation dialog, 2 = rawDialog, 3 = loadingDialog)
Creates a action-Entry in a list
string
listButton
(string $strContent)
Generates a delete-button. The passed element name and question is shown as a modal dialog when the icon was clicked. So set the link-href-param for the final deletion, otherwise the user has no more chance to delete the record!
string
listDeleteButton
($strElementName $strElementName, $strQuestion $strQuestion, $strLinkHref $strLinkHref)
-
$strElementName
$strElementName
-
$strQuestion
$strQuestion
-
$strLinkHref
$strLinkHref
Returns the code to finish the opened list
string
listFooter
()
Returns the htmlcode needed to start a proper list
string
listHeader
()
Returns a row in a list with 2 columns
string
listRow2
(string $strName, string $strActions, $intCount, [string $strType = ""], [string $strListitemID = ""], int $intCount,)
-
string
$strName
-
string
$strActions
-
int
$intCount,: used to determing the class needed
-
string
$strType: to react on special cases
-
string
$strListitemID: id of row-entry, e.g. to use in ajax elements
-
$intCount
Returns a row in a list with 2 columns and a leading image
string
listRow2Image
(string $strImage, string $strName, string $strActions, $intCount, [string $strType = ""], [string $strListitemID = ""], int $intCount,)
-
string
$strImage
-
string
$strName
-
string
$strActions
-
int
$intCount,: used to determing the class needed
-
string
$strType: to react on special cases
-
string
$strListitemID: id of row-entry, e.g. to use in ajax elements
-
$intCount
Returns a row in a list with 3 columns, with leading image
string
listRow3
(string $strName, string $strCenter, string $strActions, string $strImage, $intCount, [string $strListitemID = ""], int $intCount,)
-
string
$strName
-
string
$strCenter
-
string
$strActions
-
string
$strImage
-
int
$intCount,: used to determing the class needed
-
string
$strListitemID: id of row-entry, e.g. to use in ajax elements
-
$intCount
Generates a button allowing to change the status of the record passed.
Therefore an ajax-method is called.
string
listStatusButton
(string $strSystemid)
Creates a percent-beam to illustrate proportions
string
percentBeam
(float $floatPercent, [int $intLength = "300"])
-
float
$floatPercent
-
int
$intLength
Sets the users browser focus to the element with the given id
string
setBrowserFocus
(string $strElementId)
Returns a warning box, e.g. shown before deleting a record
string
warningBox
(string $strContent, [string $strClass = "warnbox"])
-
string
$strContent
-
string
$strClass
Inherited Methods
Inherited From class_toolkit
class_toolkit::__construct()
class_toolkit::mimeType()