Returns the number of Collections in the database
If $Alphabetical is set to true, an array will be returned with keys of a-z, #, and * each holding the count for Collection SortTitles starting with that character. # represents all collections starting with a number, and * holds the total count of all collections.
integer|Array
countCollections
([ $Alphabetical = false], [ $ExcludeDisabledCollections = false], $RepositoryID, boolean $Alphabetical[optional], boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
-
boolean
$Alphabetical[optional]
-
boolean
$ExcludeDisabledCollections[optional]
-
integer
$RepositoryID[optional]
-
$Alphabetical
-
$ExcludeDisabledCollections
-
$RepositoryID
Creates an formatted string from an array of LocationEntry objects
string
createStringFromLocationEntryArray
(LocationEntry[] $arrLocationEntries, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $ConcatinateFieldNames = true], [ $SubDelimiter = ", "], string $Delimiter[optional], integer $MakeIntoLink[optional], boolean $ConcatinateFieldNames[optional], string $SubDelimiter[optional])
-
LocationEntry[]
$arrLocationEntries
-
string
$Delimiter[optional]
-
integer
$MakeIntoLink[optional]
-
boolean
$ConcatinateFieldNames[optional]
-
string
$SubDelimiter[optional]
-
$Delimiter
-
$MakeIntoLink
-
$ConcatinateFieldNames
-
$SubDelimiter
Creates an formatted string from an array of UserField objects
string
createStringFromUserFieldArray
(UserField[] $arrUserFields, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $ConcatinateTitles = true], string $Delimiter[optional], integer $MakeIntoLink[optional], string $ConcatinateTitles[optional])
-
UserField[]
$arrUserFields
-
string
$Delimiter[optional]
-
integer
$MakeIntoLink[optional]
-
string
$ConcatinateTitles[optional]
-
$Delimiter
-
$MakeIntoLink
-
$ConcatinateTitles
Retrieves all Classifications from the database
The returned array of Classification objects is nested such that the objects will have their Classification[] member variable populated with their children, which allows for a complete tree structure.
Classification[]
getAllClassifications
()
Retrieves all Collections from the database
The returned array of Collection objects is sorted by SortTitle and has IDs as keys.
Please realize that calling this function could take a very long time if there are a lot of collections.
Also, this function does NOT load content or retrieve related information like subjects, creators, etc.
Collection[]
getAllCollections
([ $MakeIntoIndex = false], [ $ExcludeDisabledCollections = false], $RepositoryID, boolean $MakeIntoIndex[optional], boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
-
boolean
$MakeIntoIndex[optional]
-
boolean
$ExcludeDisabledCollections[optional]
-
integer
$RepositoryID[optional]
-
$MakeIntoIndex
-
$ExcludeDisabledCollections
-
$RepositoryID
Retrieves all Descriptive Rules from the database
The returned array of DescriptiveRules objects is sorted by DescriptiveRulesLong and has IDs as keys.
DescriptiveRules[]
getAllDescriptiveRules
()
Retrieves all EAD Elements from the database
The returned array of EADElement objects is sorted by EADElement and has IDs as keys.
EADElement[]
getAllEADElements
()
Retrieves all Extent Units from the database
The returned array of ExtentUnit objects is sorted by ExtentUnit and has IDs as keys.
ExtentUnit[]
getAllExtentUnits
()
Retrieves all Level/Containers from the database
The returned array of LevelContainer objects is sorted by LevelContainer and has IDs as keys.
LevelContainer[]
getAllLevelContainers
()
Retrieves all Locations from the database
The returned array of Locations objects is sorted by Location and has IDs as keys.
Location[]
getAllLocations
()
Retrieves all Material Types from the database
The returned array of MaterialType objects is sorted by MaterialType and has IDs as keys.
MaterialType[]
getAllMaterialTypes
()
Retrieves all Repositories from the database
The returned array of Repository objects is sorted by Name and has IDs as keys.
Repository[]
getAllRepositories
()
Retrieves child Classifications for Classification specified by $ID
Classification[]
getChildClassifications
( $ID, integer $ID[optional])
-
integer
$ID[optional]
-
$ID
Retrieves child CollectionContent for CollectionContent specified by $ContentID
$CollectionID is required whenever $ContentID = 0
CollectionContent[]
getChildCollectionContent
(integer $ContentID, $CollectionID, integer $CollectionID[optional])
-
integer
$ContentID
-
integer
$CollectionID[optional]
-
$CollectionID
Retrieves an array containing Classification objects for each ID in $arrIDs
Classification[]
getClassificationArrayFromIDArray
(integer[] $arrIDs)
Returns Classification ID for given Record Group Number.
Classifications in the number are separated by '/'.
unknown
getClassificationIDForNumber
(unknown_type $RecordGroupNumber)
-
unknown_type
$RecordGroupNumber
Retrieves an array containing CollectionContent objects for each ID in $arrIDs
CollectionContent[]
getCollectionContentArrayFromIDArray
(integer[] $arrIDs)
Returns CollectionContentID when passed the CollectionID, LevelContainerID, LevelContainerNumber, and ParentID
integer
getCollectionContentIDFromData
(integer $CollectionID, integer $LevelContainerID, integer $LevelContainerNumber, $ParentID, integer $ParentID[optional])
-
integer
$CollectionID
-
integer
$LevelContainerID
-
integer
$LevelContainerNumber
-
integer
$ParentID[optional]
-
$ParentID
Returns CollectionID for given Record Series Number.
Classifications and Collection Identifiers are separated by '/'s in the number.
integer
getCollectionIDForNumber
(string $RecordSeriesNumber)
-
string
$RecordSeriesNumber
Retrieves an array of Collection objects that begin with the character specified by $Char
Collection[]
getCollectionsForChar
(string $Char, [ $ExcludeDisabledCollections = false], $RepositoryID, boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
-
string
$Char
-
boolean
$ExcludeDisabledCollections[optional]
-
integer
$RepositoryID[optional]
-
$ExcludeDisabledCollections
-
$RepositoryID
Retrieves an array of Collection objects that are organized under the Classification specified by $ID
Collection[]
getCollectionsForClassification
(integer $ID, [ $ExcludeDisabledCollections = false], boolean $ExcludeDisabledCollections[optional])
-
integer
$ID
-
boolean
$ExcludeDisabledCollections[optional]
-
$ExcludeDisabledCollections
Returns EADElementID value when passed the string value for an EAD element type.
integer
getEADElementIDFromString
(string $String)
Returns an array containing detailed extent information derived from entries in the location index. Each element in the array will be an object with two member variables:
float Extent ExtentUnit ExtentUnit
array
getExtentForLocation
(int $LocationID)
Returns ExtentUnitID value when passed the string value for a container type.
integer
getExtentUnitIDFromString
(string $String)
Returns LevelContainerID value when passed the string value for a container type.
integer
getLevelContainerIDFromString
(string $String)
Returns MaterialTypeID value when passed the string value for a container type.
integer
getMaterialTypeIDFromString
(string $String)
Returns next container number when passed the CollectionID, ParentID, and LevelContainerID
integer
getNextLevelContainerNumber
(integer $CollectionID, integer $LevelContainerID, $ParentID, integer $ParentID[optional])
-
integer
$CollectionID
-
integer
$LevelContainerID
-
integer
$ParentID[optional]
-
$ParentID
Retrieves sibling CollectionContent for CollectionContent specified by $ID
$CollectionID is required whenever $ID = 0
CollectionContent[]
getSiblingCollectionContent
(integer $ID)
Initializes Archon for use
void
initialize
()
Searches the Classification database
Classification[]
searchClassifications
(string $SearchQuery, [ $ParentID = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $ParentID[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$ParentID[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$ParentID
-
$Limit
-
$Offset
Searches the CollectionContent database
Classification[]
searchCollectionContent
(string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONCONTENT], $CollectionID, $RepositoryID, [ $ParentID = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $ParentID[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$ParentID[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$SearchFlags
-
$CollectionID
-
$RepositoryID
-
$ParentID
-
$Limit
-
$Offset
Searches the Collection database
Collection[]
searchCollections
(string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONS], $SubjectID, $CreatorID, $LanguageID, $RepositoryID, $LocationID, [ $Range = NULL], [ $Section = NULL], [ $Shelf = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $SearchFlags[optional], integer $SubjectID[optional], integer $CreatorID[optional], integer $LanguageID[optional], integer $RepositoryID[optional], integer $LocationID[optional], string $Range[optional], string $Section[optional], string $Shelf[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$SearchFlags[optional]
-
integer
$SubjectID[optional]
-
integer
$CreatorID[optional]
-
integer
$LanguageID[optional]
-
integer
$RepositoryID[optional]
-
integer
$LocationID[optional]
-
string
$Range[optional]
-
string
$Section[optional]
-
string
$Shelf[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$SearchFlags
-
$SubjectID
-
$CreatorID
-
$LanguageID
-
$RepositoryID
-
$LocationID
-
$Range
-
$Section
-
$Shelf
-
$Limit
-
$Offset
Searches the CollectionContent database and returns an array of sorted Classification objects that have the matching Collections in the Classifications' Collections[] member variable, and if $SearchContent is true, the matching Content in the Collections' Content member variable.
void
searchCollectionsByClassification
(string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONS], $SubjectID, $CreatorID, $LanguageID, $RepositoryID, $LocationID, [ $Range = NULL], [ $Section = NULL], [ $Shelf = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $SearchFlags[optional], integer $SubjectID[optional], integer $CreatorID[optional], integer $LanguageID[optional], integer $RepositoryID[optional], integer $LocationID[optional], string $Range[optional], string $Section[optional], string $Shelf[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$SearchFlags[optional]
-
integer
$SubjectID[optional]
-
integer
$CreatorID[optional]
-
integer
$LanguageID[optional]
-
integer
$RepositoryID[optional]
-
integer
$LocationID[optional]
-
string
$Range[optional]
-
string
$Section[optional]
-
string
$Shelf[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$SearchFlags
-
$SubjectID
-
$CreatorID
-
$LanguageID
-
$RepositoryID
-
$LocationID
-
$Range
-
$Section
-
$Shelf
-
$Limit
-
$Offset
Searches the ExtentUnit database
ExtentUnit[]
searchExtentUnits
(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 LevelContainer database
LevelContainer[]
searchLevelContainers
(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 Location database
Location[]
searchLocations
(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 MaterialType database
MaterialType[]
searchMaterialTypes
(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 Repository database
Repository[]
searchRepositories
(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
Bulk renumbering of level container numbers
boolean
shiftLevelContainerNumbers
( &$arrCollectionContent, integer $ShiftDirection, integer $ShiftAmount, CollectionContent[] $arrCollectionContent)
-
CollectionContent[]
$arrCollectionContent
-
integer
$ShiftDirection
-
integer
$ShiftAmount
-
&$arrCollectionContent
Returns an array containing Classification objects sorted from root to node
Classification[]
traverseClassification
(integer $ID)
Returns an array containing CollectionContent objects sorted from root to node
CollectionContent[]
traverseCollectionContent
(integer $ID)