Class Collections_Archon

Description
  • abstract:

Located in /packages/collections/lib/core/archon.inc.php (line 2)


	
			
Variable Summary
Repository $Repository
Method Summary
integer|Array countCollections ([ $Alphabetical = false], [ $ExcludeDisabledCollections = false], [ $RepositoryID = 0], boolean $Alphabetical[optional], boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
string createStringFromLocationEntryArray (LocationEntry[] $arrLocationEntries, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $ConcatinateFieldNames = true], [ $SubDelimiter = ", "], string $Delimiter[optional], integer $MakeIntoLink[optional], boolean $ConcatinateFieldNames[optional], string $SubDelimiter[optional])
string createStringFromUserFieldArray (UserField[] $arrUserFields, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $ConcatinateTitles = true], string $Delimiter[optional], integer $MakeIntoLink[optional], string $ConcatinateTitles[optional])
Classification[] getAllClassifications ()
Collection[] getAllCollections ([ $MakeIntoIndex = false], [ $ExcludeDisabledCollections = false], [ $RepositoryID = 0], boolean $MakeIntoIndex[optional], boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
DescriptiveRules[] getAllDescriptiveRules ()
EADElement[] getAllEADElements ()
ExtentUnit[] getAllExtentUnits ()
LevelContainer[] getAllLevelContainers ()
Location[] getAllLocations ()
MaterialType[] getAllMaterialTypes ()
Repository[] getAllRepositories ()
Classification[] getChildClassifications ([ $ID = 0], integer $ID[optional])
CollectionContent[] getChildCollectionContent (integer $ContentID, [ $CollectionID = 0], integer $CollectionID[optional])
Classification[] getClassificationArrayFromIDArray (integer[] $arrIDs)
CollectionContent[] getCollectionContentArrayFromIDArray (integer[] $arrIDs)
integer getCollectionContentIDFromData (integer $CollectionID, integer $LevelContainerID, integer $LevelContainerNumber, [ $ParentID = 0], integer $ParentID[optional])
Collection[] getCollectionsForChar (string $Char, [ $ExcludeDisabledCollections = false], [ $RepositoryID = 0], boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
Collection[] getCollectionsForClassification (integer $ID, [ $ExcludeDisabledCollections = false], boolean $ExcludeDisabledCollections[optional])
integer getEADElementIDFromString (string $String)
array getExtentForLocation (int $LocationID)
integer getExtentUnitIDFromString (string $String)
integer getLevelContainerIDFromString (string $String)
integer getMaterialTypeIDFromString (string $String)
integer getNextLevelContainerNumber (integer $CollectionID, integer $LevelContainerID, [ $ParentID = 0], integer $ParentID[optional])
CollectionContent[] getSiblingCollectionContent (integer $ID)
void initialize ()
Classification[] searchClassifications (string $SearchQuery, [ $ParentID = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $ParentID[optional], integer $Limit[optional])
Classification[] searchCollectionContent (string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONCONTENT], [ $CollectionID = 0], [ $RepositoryID = 0], [ $ParentID = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $ParentID[optional], integer $Limit[optional])
Collection[] searchCollections (string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONS], [ $SubjectID = 0], [ $CreatorID = 0], [ $LanguageID = 0], [ $RepositoryID = 0], [ $LocationID = 0], [ $Range = NULL], [ $Section = NULL], [ $Shelf = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], 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])
void searchCollectionsByClassification (string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONS], [ $SubjectID = 0], [ $CreatorID = 0], [ $LanguageID = 0], [ $RepositoryID = 0], [ $LocationID = 0], [ $Range = NULL], [ $Section = NULL], [ $Shelf = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], 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])
ExtentUnit[] searchExtentUnits (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
LevelContainer[] searchLevelContainers (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
Location[] searchLocations (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
MaterialType[] searchMaterialTypes (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
Repository[] searchRepositories (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
boolean shiftLevelContainerNumbers ( &$arrCollectionContent, integer $ShiftDirection, integer $ShiftAmount, CollectionContent[] $arrCollectionContent)
Classification[] traverseClassification (integer $ID)
CollectionContent[] traverseCollectionContent (integer $ID)
Variables
Repository $Repository = NULL (line 2079)

Repository object containing the default repository (unless specified otherwise by setrepositoryid

  • access: public
Methods
countCollections (line 17)

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.

  • access: public
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
createStringFromLocationEntryArray (line 89)

Creates an formatted string from an array of LocationEntry objects

  • access: public
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
createStringFromUserFieldArray (line 125)

Creates an formatted string from an array of UserField objects

  • access: public
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
getAllClassifications (line 162)

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.

  • access: public
Classification[] getAllClassifications ()
getAllCollections (line 202)

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.

  • access: public
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
getAllDescriptiveRules (line 257)

Retrieves all Descriptive Rules from the database

The returned array of DescriptiveRules objects is sorted by DescriptiveRulesLong and has IDs as keys.

  • access: public
DescriptiveRules[] getAllDescriptiveRules ()
getAllEADElements (line 274)

Retrieves all EAD Elements from the database

The returned array of EADElement objects is sorted by EADElement and has IDs as keys.

  • access: public
EADElement[] getAllEADElements ()
getAllExtentUnits (line 291)

Retrieves all Extent Units from the database

The returned array of ExtentUnit objects is sorted by ExtentUnit and has IDs as keys.

  • access: public
ExtentUnit[] getAllExtentUnits ()
getAllLevelContainers (line 308)

Retrieves all Level/Containers from the database

The returned array of LevelContainer objects is sorted by LevelContainer and has IDs as keys.

  • access: public
LevelContainer[] getAllLevelContainers ()
getAllLocations (line 325)

Retrieves all Locations from the database

The returned array of Locations objects is sorted by Location and has IDs as keys.

  • access: public
Location[] getAllLocations ()
getAllMaterialTypes (line 342)

Retrieves all Material Types from the database

The returned array of MaterialType objects is sorted by MaterialType and has IDs as keys.

  • access: public
MaterialType[] getAllMaterialTypes ()
getAllRepositories (line 359)

Retrieves all Repositories from the database

The returned array of Repository objects is sorted by Name and has IDs as keys.

  • access: public
Repository[] getAllRepositories ()
getChildClassifications (line 375)

Retrieves child Classifications for Classification specified by $ID

  • access: public
Classification[] getChildClassifications ( $ID, integer $ID[optional])
  • integer $ID[optional]
  • $ID
getChildCollectionContent (line 399)

Retrieves child CollectionContent for CollectionContent specified by $ContentID

$CollectionID is required whenever $ContentID = 0

  • access: public
CollectionContent[] getChildCollectionContent (integer $ContentID,  $CollectionID, integer $CollectionID[optional])
  • integer $ContentID
  • integer $CollectionID[optional]
  • $CollectionID
getClassificationArrayFromIDArray (line 447)

Retrieves an array containing Classification objects for each ID in $arrIDs

  • access: public
Classification[] getClassificationArrayFromIDArray (integer[] $arrIDs)
  • integer[] $arrIDs
getCollectionContentArrayFromIDArray (line 507)

Retrieves an array containing CollectionContent objects for each ID in $arrIDs

  • access: public
CollectionContent[] getCollectionContentArrayFromIDArray (integer[] $arrIDs)
  • integer[] $arrIDs
getCollectionContentIDFromData (line 567)

Returns CollectionContentID when passed the CollectionID, LevelContainerID, LevelContainerNumber, and ParentID

  • access: public
integer getCollectionContentIDFromData (integer $CollectionID, integer $LevelContainerID, integer $LevelContainerNumber,  $ParentID, integer $ParentID[optional])
  • integer $CollectionID
  • integer $LevelContainerID
  • integer $LevelContainerNumber
  • integer $ParentID[optional]
  • $ParentID
getCollectionsForChar (line 632)

Retrieves an array of Collection objects that begin with the character specified by $Char

  • access: public
Collection[] getCollectionsForChar (string $Char, [ $ExcludeDisabledCollections = false],  $RepositoryID, boolean $ExcludeDisabledCollections[optional], integer $RepositoryID[optional])
  • string $Char
  • boolean $ExcludeDisabledCollections[optional]
  • integer $RepositoryID[optional]
  • $ExcludeDisabledCollections
  • $RepositoryID
getCollectionsForClassification (line 685)

Retrieves an array of Collection objects that are organized under the Classification specified by $ID

  • access: public
Collection[] getCollectionsForClassification (integer $ID, [ $ExcludeDisabledCollections = false], boolean $ExcludeDisabledCollections[optional])
  • integer $ID
  • boolean $ExcludeDisabledCollections[optional]
  • $ExcludeDisabledCollections
getEADElementIDFromString (line 762)

Returns EADElementID value when passed the string value for an EAD element type.

  • access: public
integer getEADElementIDFromString (string $String)
  • string $String
getExtentForLocation (line 791)

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

  • access: public
array getExtentForLocation (int $LocationID)
  • int $LocationID
getExtentUnitIDFromString (line 845)

Returns ExtentUnitID value when passed the string value for a container type.

  • access: public
integer getExtentUnitIDFromString (string $String)
  • string $String
getLevelContainerIDFromString (line 737)

Returns LevelContainerID value when passed the string value for a container type.

  • access: public
integer getLevelContainerIDFromString (string $String)
  • string $String
getMaterialTypeIDFromString (line 871)

Returns MaterialTypeID value when passed the string value for a container type.

  • access: public
integer getMaterialTypeIDFromString (string $String)
  • string $String
getNextLevelContainerNumber (line 897)

Returns next container number when passed the CollectionID, ParentID, and LevelContainerID

  • access: public
integer getNextLevelContainerNumber (integer $CollectionID, integer $LevelContainerID,  $ParentID, integer $ParentID[optional])
  • integer $CollectionID
  • integer $LevelContainerID
  • integer $ParentID[optional]
  • $ParentID
getSiblingCollectionContent (line 948)

Retrieves sibling CollectionContent for CollectionContent specified by $ID

$CollectionID is required whenever $ID = 0

  • access: public
CollectionContent[] getSiblingCollectionContent (integer $ID)
  • integer $ID
initialize (line 996)

Initializes Archon for use

  • access: public
void initialize ()
searchClassifications (line 1032)

Searches the Classification database

  • access: public
Classification[] searchClassifications (string $SearchQuery, [ $ParentID = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $ParentID[optional], integer $Limit[optional])
  • string $SearchQuery
  • integer $ParentID[optional]
  • integer $Limit[optional]
  • $ParentID
  • $Limit
searchCollectionContent (line 1053)

Searches the CollectionContent database

  • access: public
Classification[] searchCollectionContent (string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONCONTENT],  $CollectionID,  $RepositoryID, [ $ParentID = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $ParentID[optional], integer $Limit[optional])
  • string $SearchQuery
  • integer $ParentID[optional]
  • integer $Limit[optional]
  • $SearchFlags
  • $CollectionID
  • $RepositoryID
  • $ParentID
  • $Limit
searchCollections (line 1190)

Searches the Collection database

  • access: public
  • todo: Search User-defined fields
Collection[] searchCollections (string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONS],  $SubjectID,  $CreatorID,  $LanguageID,  $RepositoryID,  $LocationID, [ $Range = NULL], [ $Section = NULL], [ $Shelf = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], 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])
  • 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]
  • $SearchFlags
  • $SubjectID
  • $CreatorID
  • $LanguageID
  • $RepositoryID
  • $LocationID
  • $Range
  • $Section
  • $Shelf
  • $Limit
searchCollectionsByClassification (line 1495)

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.

  • access: public
  • todo: Search User-defined fields
void searchCollectionsByClassification (string $SearchQuery, [ $SearchFlags = SEARCH_COLLECTIONS],  $SubjectID,  $CreatorID,  $LanguageID,  $RepositoryID,  $LocationID, [ $Range = NULL], [ $Section = NULL], [ $Shelf = NULL], [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], 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])
  • 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]
  • $SearchFlags
  • $SubjectID
  • $CreatorID
  • $LanguageID
  • $RepositoryID
  • $LocationID
  • $Range
  • $Section
  • $Shelf
  • $Limit
searchExtentUnits (line 1848)

Searches the ExtentUnit database

  • access: public
ExtentUnit[] searchExtentUnits (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
searchLevelContainers (line 1864)

Searches the LevelContainer database

  • access: public
LevelContainer[] searchLevelContainers (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
searchLocations (line 1880)

Searches the Location database

  • access: public
Location[] searchLocations (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
searchMaterialTypes (line 1896)

Searches the MaterialType database

  • access: public
MaterialType[] searchMaterialTypes (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
searchRepositories (line 1912)

Searches the Repository database

  • access: public
Repository[] searchRepositories (string $SearchQuery, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], integer $Limit[optional])
  • string $SearchQuery
  • integer $Limit[optional]
  • $Limit
shiftLevelContainerNumbers (line 1928)

Bulk renumbering of level container numbers

  • access: public
boolean shiftLevelContainerNumbers ( &$arrCollectionContent, integer $ShiftDirection, integer $ShiftAmount, CollectionContent[] $arrCollectionContent)
  • CollectionContent[] $arrCollectionContent
  • integer $ShiftDirection
  • integer $ShiftAmount
  • &$arrCollectionContent
traverseClassification (line 2016)

Returns an array containing Classification objects sorted from root to node

  • access: public
Classification[] traverseClassification (integer $ID)
  • integer $ID
traverseCollectionContent (line 2048)

Returns an array containing CollectionContent objects sorted from root to node

  • access: public
CollectionContent[] traverseCollectionContent (integer $ID)
  • integer $ID

Documentation generated on Wed, 05 Mar 2008 16:45:17 -0600 by phpDocumentor 1.3.1