Returns closing HTML to a standard row for a details iframe
string
closeDetailsRow
([string $FieldPhraseName = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldPhraseName
-
string
$NextFieldDelimiter
Returns closing HTML for a group of rows to be hidden and shown by clicking an anchor.
string
closeDetailsToggleBar
()
Ends an indented section in a details iframe
string
closeIndentedSubSection
()
Returns closing HTML for a standard details iframe
string
closeStandardDetails
()
Returns HTML for a checkbox in a standard details iframe
string
createCheckBox
(string $FieldName, [string $FieldPhraseName = NULL], [string[] $arrEvents = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldName
-
string
$FieldPhraseName
-
string[]
$arrEvents: use event name as key and javascript as value
-
string
$NextFieldDelimiter
Returns HTML to open a standard details row
string
createDetailsRow
([string $RowID = NULL], [string $FieldPhraseName = NULL], [integer $Colspan = 3])
-
string
$RowID: DOM id of row
-
string
$FieldPhraseName
-
integer
$Colspan: number of columns to cover in containing table
Returns HTML to add a horizontal separator into table
string
createDetailsSeparator
([string $RowID = NULL])
-
string
$RowID: DOM id of row holding separator
Returns HTML to begin a section of the details iframe to be hidden and displayed by clicking an anchor string.
string
createDetailsToggleBar
(string $BarName, [string $BarPhraseName = NULL], [boolean $ClosedOnLoad = true])
-
string
$BarName
-
string
$BarPhraseName: phrase name of the toggling anchor's string.
-
boolean
$ClosedOnLoad: specified if the following sections are to be hidden initially
Returns HTML for a standard help button image. When clicked, an alert box will appear showing the specified phrase.
string
createHelpButton
(string $PhraseName, integer $PackageID, integer $ModuleID)
-
string
$PhraseName
-
integer
$PackageID
-
integer
$ModuleID
Returns HTML for a hidden form field. The object will remember the creation of the field and not make it again when creatorHiddenInputsForMissedFields is called.
string
createHiddenField
(string $FieldName, string $FieldValue)
-
string
$FieldName
-
string
$FieldValue
Returns HTML to create hidden fields for all instance variables of $this->Object that were not explicitly created through other AdministrativeInterface functions.
string
createHiddenInputsForMissedFields
()
Returns HTML to begin a details iframe that must recognize existence of a parent object
string
createHierarchicalDetails
([string $FocusField = NULL], [string $OnLoadEvent = NULL])
-
string
$FocusField: name of field to automatically receive focus on page load
-
string
$OnLoadEvent: javascript to be run on page load
Returns HTML to create a list where a parent must be recognized
string
createHierarchicalList
(string $SearchFunction, [string[] $arrSearchArguments = array('parentid')], [string[] $arrSearchDefaults = array(parentid => 0)])
-
string
$SearchFunction
-
string[]
$arrSearchArguments
-
string[]
$arrSearchDefaults
Returns HTML to create a standard main frame when a parent object must be recognized
string
createHierarchicalMain
(string $HeaderPhraseName, [string $ClassUnderPhraseName = ''], string $TraverseFunction)
-
string
$HeaderPhraseName
-
string
$ClassUnderPhraseName
-
string
$TraverseFunction: function used to traverse up hierarchy from current object
Returns HTML to start an indented section in a details iframe
string
createIndentedSubSection
()
Returns HTML to show supplied information within a details iframe
string
createInformationList
(mixed $Information, [string $FieldPhraseName = NULL])
-
mixed
$Information: if an array is supplied, echo piece of info will be displayed in a separate row
-
string
$FieldPhraseName
Returns HTML to close a standard box (usually holding information for one administrative module)
string
createModuleFooter
()
Returns HTML to open a standard box (usually holding information for one administrative module)
string
createModuleHeader
(string $HeaderPhraseName, [string $Colspan = 3], [integer $Width = 700])
-
string
$HeaderPhraseName
-
string
$Colspan: number of columns table should hold
-
integer
$Width: width of box in px
Returns HTML to creator a password field in a standard details iframe
string
createPasswordField
(string $FieldName, [string $FieldPhraseName = NULL], [integer $Size = 30], [integer $MaxLength = 50], [string[] $arrEvents = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldName
-
string
$FieldPhraseName
-
integer
$Size: size attribute of password field
-
integer
$MaxLength: maxlength attribute of password field
-
string[]
$arrEvents: keys are event names and values are javascript to executed
-
string
$NextFieldDelimiter
Returns HTML to create an "Advanced Permissions Editor" for current object
string
createPermissionsEditor
(string $GetArrayFromIDArrayFunction, string $GetPermissionsFunction, string $HeaderPhraseName)
-
string
$GetArrayFromIDArrayFunction: API function for obtaining all objects from ids passed in $_REQUEST
-
string
$GetPermissionsFunction
-
string
$HeaderPhraseName
Returns HTML to create radio buttons in a standard details iframe
string
createRadioButtons
(string $FieldName, [string $FieldPhraseName = NULL], [string[] $OptionPhraseNames = array(1 => 'yes', 0 => 'no')], [string[] $arrEvents = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldName
-
string
$FieldPhraseName
-
string[]
$OptionPhraseNames
-
string[]
$arrEvents: keys are event names and values are javascript to executed
-
string
$NextFieldDelimiter
Returns HTML to aid in relating objects within an iframe
string
createRelationsFrame
(string $RelatingClass, string $PluralRelatingClass, string $dbLoadFunction, string $SearchFunction, [string[] $arrSearchArguments = array()], [string[] $arrSearchDefaults = array()], string $LaunchModule, [string $HelpBoxPhraseName = NULL], [string $AllObjectsPhraseName = NULL], [string $ObjectsForPhraseName = NULL], [string $NoPrimaryPhraseName = NULL], [ $toStringArguments = array()])
-
string
$RelatingClass
-
string
$PluralRelatingClass
-
string
$dbLoadFunction: function to load all data for $this->Object
-
string
$SearchFunction
-
string[]
$arrSearchArguments
-
string[]
$arrSearchDefaults
-
string
$LaunchModule: name of module to launch with anchor at bottom of iframe
-
string
$HelpBoxPhraseName
-
string
$AllObjectsPhraseName
-
string
$ObjectsForPhraseName
-
string
$NoPrimaryPhraseName
-
$toStringArguments
Returns HTML for creating a search box and enclosing row for a relating iframe within a details iframe
string
createRelationsRow
(string $Class, string $FName, [string $HelpBoxPhraseName = NULL])
-
string
$Class: class to be related/unrelated
-
string
$FName: name of php function within script to create HTML within iframe
-
string
$HelpBoxPhraseName
Returns HTML to create select box within a details iframe
string
createSelect
(string $FieldName, string $SearchFunction, [string $FieldPhraseName = NULL], [string $NoSelectionPhraseName = NULL], [string[] $arrEvents = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldName
-
string
$SearchFunction
-
string
$FieldPhraseName
-
string
$NoSelectionPhraseName
-
string[]
$arrEvents: keys are event names and values are javascript to executed
-
string
$NextFieldDelimiter
Returns HTML to start a standard details iframe
string
createStandardDetails
([string $FocusField = NULL], [string $OnLoadEvent = NULL])
-
string
$FocusField: field to be focused upon when frame loads
-
string
$OnLoadEvent: javascript to be executed when frame loads
Return HTML to be echoed for a standard list of objects to be edited in an administrative module
string
createStandardList
(string $SearchFunction, [string[] $arrSearchArguments = array()], [string[] $arrSearchDefaults = array()])
-
string
$SearchFunction
-
string[]
$arrSearchArguments
-
string[]
$arrSearchDefaults
Returns HTML for enclosing a standard module interface
string
createStandardMain
(string $HeaderPhraseName)
Returns HTML to create a textarea within a details iframe
string
createTextArea
(string $FieldName, [string $FieldPhraseName = NULL], [string $Rows = 8], [string $Columns = 50], [string[] $arrEvents = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldName
-
string
$FieldPhraseName
-
string
$Rows: number of rows within textarea
-
string
$Columns: number of columns within textarea
-
string[]
$arrEvents: keys are event names and values are javascript to executed
-
string
$NextFieldDelimiter
Returns HTML to create a text field within a details iframe
string
createTextField
(string $FieldName, [string $FieldPhraseName = NULL], [string $Size = 50], [string $MaxLength = 100], [string $arrEvents = NULL], [string $NextFieldDelimiter = NULL])
-
string
$FieldName
-
string
$FieldPhraseName
-
string
$Size: size attribute of text field
-
string
$MaxLength: maxlength attribute of text field
-
string
$arrEvents: keys are event names and values are javascript to executed
-
string
$NextFieldDelimiter
Returns HTML to create a standard interface for transfering objects within a hierarchy
string
createTransfer
(string $HeaderPhraseName, string $GetArrayFromIDArrayFunction, string $TraverseFunction, string $GetChildrenFunction)
-
string
$HeaderPhraseName
-
string
$GetArrayFromIDArrayFunction: $_ARCHON function for obtaining array of objects from their ids
-
string
$TraverseFunction: $_ARCHON function for traversing up hierarchy from a child
-
string
$GetChildrenFunction: function to get children for an object
Returns HTML for opening a User or Usergroup style details iframe
string
createUserStyleDetails
([string $FocusField = NULL], [string $OnLoadEvent = NULL])
-
string
$FocusField: field to focus upon on page load
-
string
$OnLoadEvent: javascript to execute on page load
Returns HTML for creating a User or Usergroup style list lacking dynamic search functionality
string
createUserStyleList
(string $SearchFunction)
Returns HTML to enclose an entire User or Usergroup style module interface
string
createUserStyleMain
(string $HeaderPhraseName)
Calls additional functions connected to current administrative interface function that were added by other packages
void
includeUIFunctions
(string $FunctionName)
Initializes the administrative interface.
string
initialize
([string $Theme = CONFIG_CORE_DEFAULT_THEME])
Searches packages for additions to administrative user interface functions to extend their functionality
Note: Only administrative functions in packages which are installed and enabled will be added
boolean
loadAdministrativeUIFunctions
()
Returns any array of administrative widgets.
Note: Only administrative widgets in packages which are installed and enabled will be added
The first dimension is the PackageID The second dimension is the "Widget Code" defined by the administrative widget
boolean
loadAdministrativeWidgets
()
Sets class of primary object for the current instantiation of the administrative interface.
It then loads the current object or objects in memory according to the ids set in $_REQUEST.
string
setClass
(string $ClassName)
Sets fields to be used within a details iframe for searching the database.
These searches are used to narrow the list of objects that may be edited.
void
setSearchFields
(string $QueryField, [string[] $arrExtraSearchFields = array()])
-
string
$QueryField: field to be passed in as q within the list's $_REQUEST
-
string[]
$arrExtraSearchFields