Adds additional user interface function for extending functionality of other user interface functions
void
addAdministrativeUIFunction
(string $FunctionName, string $AddedFunctionName)
-
string
$FunctionName: function being extended
-
string
$AddedFunctionName
Adds an administrative widget
boolean
addAdministrativeWidget
(integer $PackageID, $WidgetCode, $FunctionName, string $WidgetName, string $Description, string $UtilityCode, string $PackageVersion, string[] $Extensions, boolean $InputFile[optional])
-
string
$WidgetName
-
string
$Description
-
string
$UtilityCode
-
integer
$PackageID
-
string
$PackageVersion
-
string[]
$Extensions
-
boolean
$InputFile[optional]
-
$WidgetCode
-
$FunctionName
Adds a database import utility
boolean
addDatabaseImportUtility
(integer $PackageID, string $UtilityCode, string $PackageVersion, string[] $Extensions, [ $InputFile = true], string $UtilityName, string $Description, boolean $InputFile[optional])
-
string
$UtilityName
-
string
$Description
-
integer
$PackageID
-
string
$UtilityCode
-
string
$PackageVersion
-
string[]
$Extensions
-
boolean
$InputFile[optional]
-
$InputFile
Adds a package dependency
First two parameters are the APRCodes of the Packages
void
addPackageDependency
(string $Package, string $DependsUpon, [string $DependsUponVersion = 0.01])
-
string
$Package
-
string
$DependsUpon
-
string
$DependsUponVersion
Adds a package enhancement
First two parameters are the APRCodes of the Packages
void
addPackageEnhancement
(string $Package, string $Enhances, [string $EnhancesVersion = 0.01])
-
string
$Package
-
string
$Enhances
-
string
$EnhancesVersion
Adds a search function for use in Archon's public search page
boolean
addPublicSearchFunction
(string $FunctionName, integer $DisplayOrder)
-
string
$FunctionName
-
integer
$DisplayOrder
Clears Memory Cache of the entry denoted by $Table
boolean
clearCacheObjectEntry
( $ClassName, $ID, string $Table)
-
string
$Table
-
$ClassName
-
$ID
Clears Memory Cache of the entry denoted by $Table
boolean
clearCacheTableEntry
(string $Table)
Returns the value of $_ARCHON->Error and empties it.
unknown
clearError
()
Fully traverses two variables and returns a "consensus" variable
If the argument variables are objects or arrays, the function will return a variable of the same type with any member variables that are not equal in both set to variables set to the value specified by MULTIPLE_VALUES.
Note that this function is unable to precisely compare objects that have private member variables, since it cannot access them.
mixed
createConsensusVariable
(mixed $var1, mixed $var2)
Takes a string representing a range or list of floats and creates and array containing all numbers the string represents.
float[]
createFloatArrayFromString
(string $String)
Takes a string representing a range or list of numbers and creates and array containing all numbers the string represents.
integer[]
createNumericArrayFromString
(string $String)
Creates an array of words and phrases parsed from a query string
Note: The strings in the returned array all have their slashes stripped.
string[]
createSearchWordArray
(string $String)
Creates an formatted string from an array of Language objects
string
createStringFromLanguageArray
(Language[] $arrLanguages, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], string $Delimiter[optional], integer $MakeIntoLink[optional])
-
Language[]
$arrLanguages
-
string
$Delimiter[optional]
-
integer
$MakeIntoLink[optional]
-
$Delimiter
-
$MakeIntoLink
Appends new error onto list of previous errors.
void
declareError
(string $Error)
Returns any array of installed admin themes.
The names of installed themes are derived from the directory names under adminthemes/
string[]
getAllAdminThemes
()
Returns any array of Database import utilities.
Note: Only import utilities in packages which are installed and enabled will be added to the returned array
The first dimension is the PackageID The second dimension is the "Utility Code" defined by the import utility
object[][]
getAllDatabaseImportUtilities
()
Returns an array of incoming file's names and locations
If no 'serverfiles' are specified, it will return all files in the incoming directory Otherwise, it returns only the serverfiles in the incoming directory.
string[]
getAllIncomingFileLocations
()
Returns any array of Incoming Files.
The names of installed Incoming Files are derived from the directory names under incoming/
string[]
getAllIncomingFiles
()
Retrieves all Languages from the database
The returned array of Language objects is sorted by LanguageLong and has IDs as keys.
Language[]
getAllLanguages
()
Retrieves all Modules from the database
The returned array of Module objects is sorted by Package, Module and has IDs as keys.
Module[]
getAllModules
( $LanguageID, [ $ExcludeDisabledPackages = true])
-
$LanguageID
-
$ExcludeDisabledPackages
Retrieves all Packages from the database
The returned array of Package objects is sorted by Package and has IDs as keys.
Package[]
getAllPackages
( $LanguageID, [ $ExcludeDisabledPackages = true], integer $LanguageID[optional], boolean $ExcludeDisabledPackages[optional])
-
integer
$LanguageID[optional]
-
boolean
$ExcludeDisabledPackages[optional]
-
$LanguageID
-
$ExcludeDisabledPackages
Retrieves all Phrases from the database
The returned array of Phrase objects is sorted by Phrase and has IDs as keys.
Phrase[]
getAllPhrases
()
Retrieves all Phrase Types from the database
The returned array of PhraseType objects is sorted by PhraseType and has IDs as keys.
PhraseType[]
getAllPhraseTypes
()
Retrieves all Sessions from the database
The returned array of Session objects is sorted by Name and has IDs as keys.
Session[]
getAllSessions
( $ActivityTimeLimit)
Returns any array of installed templates.
The names of installed templates are derived from the directory names under templates/
string[][]
getAllTemplates
()
Returns any array of installed themes.
The names of installed themes are derived from the directory names under themes/
string[]
getAllThemes
()
Retrieves all Usergroups from the database
The returned array of Usergroup objects is sorted by Usergroup and has IDs as keys.
Usergroup[]
getAllUsergroups
()
Retrieves all Users from the database
The returned array of User objects is sorted by Login and has IDs as keys.
User[]
getAllUsers
()
Return <script> tags to open javascript files label with $Filename from all enabled packages.
string
getJavascriptTags
(string $Filename, [string[] $GETData = array()])
-
string
$Filename
-
string[]
$GETData
Returns LanguageID value when passed the string value for a container type.
integer
getLanguageIDFromString
(string $String)
Returns the version of the latest of Archon
string
getLatestArchonVersion
()
Returns the version number for the latest update of the package
void
getLatestPackageVersionFromAPRCode
(string $APRCode)
Returns ModuleID value when passed the module script string.
integer
getModuleIDFromScript
(string $Script)
Return PackageID value when passed the package aprcode string.
integer
getPackageIDFromAPRCode
(string $APRCode)
Retrives permissions for a specified user and module
integer
getPermissionsForUser
(integer $UserID, integer $ModuleID)
-
integer
$UserID
-
integer
$ModuleID
Retrives permissions for a specified usergroup and module
integer
getPermissionsForUsergroup
(integer $UsergroupID, integer $ModuleID)
-
integer
$UsergroupID
-
integer
$ModuleID
Retrieves Phrase for Phrase specified by PhraseName and PhraseTypeID
Phrase
getPhrase
(
string $PhraseName,
$PackageID,
$ModuleID,
$PhraseTypeID,
$LanguageID,
integer $PhraseTypeID[optional],
integer $LanguageID[optional])
-
string
$PhraseName
-
integer
$PhraseTypeID[optional]
-
integer
$LanguageID[optional]
-
$PackageID
-
$ModuleID
-
$PhraseTypeID
-
$LanguageID
Returns PhraseTypeID value when passed the string value for a phrase type.
integer
getPhraseTypeIDFromString
(string $String)
Retrieves an array containing User objects for each ID in $arrIDs
User[]
getUserArrayFromIDArray
(integer[] $arrIDs)
Retrieves an array containing Usergroup objects for each ID in $arrIDs
Usergroup[]
getUsergroupArrayFromIDArray
(integer[] $arrIDs)
Return UsergroupID value when passed the usergroup's name string.
integer
getUsergroupIDFromName
(string $Usergroup)
Returns UserID value when passed the user's login string.
integer
getUserIDFromLogin
(string $Login)
Returns an array of User objects that belong to the specified Usergroup
mixed
getUsersForUsergroup
(integer $ID)
Initializes Archon for use
void
initialize
()
Loads argument object with information from the database
boolean
loadObject
(object $Object, string $Table)
-
object
$Object
-
string
$Table
Loads all rows from a table into an array of objects
Returns an array of $ClassName objects which is sorted by $OrderBy and has IDs as keys.
If the objects are nested, loadTable will also connect Parents.
$ClassName[]
loadTable
(string $Table, string $ClassName, [ $OrderBy = NULL], [ $Condition = NULL], string $OrderBy[optional], string $Condition[optional])
-
string
$Table
-
string
$ClassName
-
string
$OrderBy[optional]
-
string
$Condition[optional]
-
$OrderBy
-
$Condition
Loads Templates according to named Template Set
array
loadTemplates
(string $TemplateSet)
Adds entry in modification log
void
log
(string $TableName, integer $ID)
-
string
$TableName
-
integer
$ID
Processes phrase and translates as necessary.
string
processPhrase
(string $Phrase)
Redirects user to specified location.
void
redirect
([string $Location = NULL])
Searches the Language database
Language[]
searchLanguages
(string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$Limit
-
$Offset
Searches the ModificationLogEntry database
ModificationLogEntry[]
searchModificationLogEntries
(string $SearchQuery, [string $OrderByColumn = 'Timestamp'], [integer $OrderByDirection = DESCENDING], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
string
$OrderByColumn
-
integer
$OrderByDirection
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$Limit
-
$Offset
Searches the Phrase database
Phrase[]
searchPhrases
(string $SearchQuery, $PackageID, [ $ModuleID = NULL], $PhraseTypeID, $LanguageID, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $PhraseTypeID[optional], integer $LanguageID[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$PhraseTypeID[optional]
-
integer
$LanguageID[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$PackageID
-
$ModuleID
-
$PhraseTypeID
-
$LanguageID
-
$Limit
-
$Offset
Searches the a table in the database
Note: The first value it $Tables will be the table from which the object data will be loaded
$ClassName[]
searchTable
(string $SearchQuery, string|string[] $Tables, string|string[] $Fields, string $ClassName, [ $OrderBy = NULL], [ $AdditionalConditionsAND = NULL], [ $AdditionalConditionsOR = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, string $OrderBy[optional], string $AdditionalConditionsAND[optional], string $AdditionalConditionsOR[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
string|string[]
$Tables
-
string|string[]
$Fields
-
string
$ClassName
-
string
$OrderBy[optional]
-
string
$AdditionalConditionsAND[optional]
-
string
$AdditionalConditionsOR[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$OrderBy
-
$AdditionalConditionsAND
-
$AdditionalConditionsOR
-
$Limit
-
$Offset
Sends message to user via the message frame.
void
sendMessage
(string $Message)
Sends message to user via the message frame and redirects to specified location.
void
sendMessageAndRedirect
(string $Message, [string $Location = NULL])
-
string
$Message
-
string
$Location
Sets parameters for a Mixin Method
Classification[]
setMixinMethodParameters
( $ClassName, $MixinClassName, $Method, [ $Callback = NULL], [ $MixOrder = MIX_AFTER], integer $ID)
-
integer
$ID
-
$ClassName
-
$MixinClassName
-
$Method
-
$Callback
-
$MixOrder