Class Collections_Collection

Description
  • abstract:

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


	
			
Variable Summary
Method Summary
Collections_Collection __construct ()
integer countContent ()
boolean dbDeleteCollection ()
boolean dbLoad ()
boolean dbLoadAll ([integer $RootContentID = LOADCONTENT_ALL])
boolean dbLoadContent ([ $RootContentID = LOADCONTENT_ALL], integer $RootContentID[optional])
boolean dbLoadCreators ()
boolean dbLoadLanguages ()
boolean dbLoadRootContent ()
boolean dbLoadSubjects ()
boolean dbRelateCreator (integer $CreatorID)
boolean dbRelateLanguage (integer $LanguageID)
boolean dbRelateSubject (integer $SubjectID)
boolean dbStoreCollection ()
boolean dbUnrelateCreator (integer $CreatorID)
boolean dbUnrelateLanguage (integer $LanguageID)
boolean dbUnrelateSubject (integer $SubjectID)
boolean rootContentIDsSet ()
string toString ([ $MakeIntoLink = LINK_NONE], [ $ConcatinateCollectionIdentifier = false], integer $MakeIntoLink[optional])
Variables
string $AccessRestrictions = NULL (line 2042)
  • access: public
string $AccrualInfo = NULL (line 2070)
  • access: public
string $AcquisitionDate = NULL (line 2064)

Format: YYYYMMDD

  • access: public
string $AcquisitionDateDay (line 2134)
  • access: public
string $AcquisitionDateMonth (line 2131)
  • access: public
string $AcquisitionDateYear (line 2137)
  • access: public
string $AcquisitionMethod = NULL (line 2057)
  • access: public
string $AcquisitionSource = NULL (line 2054)
  • access: public
string $AltExtentStatement = NULL (line 2039)
  • access: public
string $AppraisalInfo = NULL (line 2067)
  • access: public
string $Arrangement = NULL (line 2033)
  • access: public
Classification $Classification = NULL (line 2196)
  • access: public
integer $ClassificationID = 0 (line 1992)
  • access: public
string $CollectionIdentifier = NULL (line 1997)
  • access: public
CollectionContent[] $Content = array() (line 2158)

Array containing Content for Collection

  • access: public
Creator[] $Creators = array() (line 2165)

Array containing Creators for Collection

  • access: public
string $CustodialHistory = NULL (line 2073)
  • access: public
DescriptiveRules $DescriptiveRules = NULL (line 2216)

Descriptive Rules Used for the Finding Aid

  • access: public
integer $DescriptiveRulesID = 0 (line 2103)
  • access: public
integer $Enabled = 1 (line 1986)
  • access: public
string $Extent = NULL (line 2021)
  • access: public
ExtentUnit $ExtentUnit = NULL (line 2199)
  • access: public
integer $ExtentUnitID = 0 (line 2024)
  • access: public
string $FindingAidAuthor = NULL (line 2018)
  • access: public
Language $FindingLanguage = NULL (line 2209)

Language of the Finding Aid

  • access: public
integer $FindingLanguageID = 0 (line 2122)
  • access: public
integer $ID = 0 (line 1981)
  • access: public
string $InclusiveDates = NULL (line 2006)
  • access: public
Language[] $Languages = array() (line 2186)

Array containing Languages for Collection

  • access: public
LocationEntry[] $LocationEntries = array() (line 2179)

Array containing Location Entries for Collection

  • access: public
MaterialType $MaterialType = NULL (line 2202)
  • access: public
integer $MaterialTypeID = 0 (line 2036)
  • access: public
string $NormalDateBegin = NULL (line 2012)
  • access: public
string $NormalDateEnd = NULL (line 2015)
  • access: public
string $OrigCopiesNote = NULL (line 2076)
  • access: public
string $OrigCopiesURL = NULL (line 2079)
  • access: public
string $OtherNote = NULL (line 2097)
  • access: public
string $OtherURL = NULL (line 2100)
  • access: public
string $PhysicalAccess = NULL (line 2048)
  • access: public
string $PredominantDates = NULL (line 2009)
  • access: public
string $PreferredCitation = NULL (line 2094)
  • access: public
Creator $PrimaryCreator = NULL (line 2224)

Creator Object of the Primary Creator for Collection

  • access: public
string $ProcessingInfo = NULL (line 2106)
  • access: public
string $PublicationDate = NULL (line 2116)

Format: YYYYMMDD

  • access: public
string $PublicationDateDay (line 2143)
  • access: public
string $PublicationDateMonth (line 2140)
  • access: public
string $PublicationDateYear (line 2146)
  • access: public
string $PublicationNote = NULL (line 2119)
  • access: public
string $RelatedMaterials = NULL (line 2082)
  • access: public
string $RelatedMaterialsURL = NULL (line 2085)
  • access: public
string $RelatedPublications = NULL (line 2088)
  • access: public
Repository $Repository = NULL (line 2193)

Repository where the Collection is stored

  • access: public
integer $RepositoryID = 0 (line 1989)
  • access: public
string $RevisionHistory = NULL (line 2109)
  • access: public
string $Scope = NULL (line 2030)
  • access: public
string $SeparatedMaterials = NULL (line 2091)
  • access: public
string $SortTitle = NULL (line 2003)
  • access: public
Subject[] $Subjects = array() (line 2172)

Array containing Subjects for Collection

  • access: public
string $TechnicalAccess = NULL (line 2051)
  • access: public
string $TemplateSet = NULL (line 2027)
  • access: public
string $Title = NULL (line 2000)
  • access: public
string $UseRestrictions = NULL (line 2045)
  • access: public
Methods
Constructor __construct (line 8)

Collection Constructor

  • access: public
Collections_Collection __construct ()
countContent (line 29)

Returns the number of content items in the collections

  • access: public
integer countContent ()
dbDeleteCollection (line 47)

Deletes Collection from the database

  • access: public
boolean dbDeleteCollection ()
dbLoad (line 184)

Loads Collection and root-level Content

This function loads all data related to the collection except for the full content tree. It is much faster than dbLoadAll().

  • access: public
boolean dbLoad ()
dbLoadAll (line 134)

Loads Collection and all related data and objects

  • access: public
boolean dbLoadAll ([integer $RootContentID = LOADCONTENT_ALL])
  • integer $RootContentID
dbLoadContainerCount (line 222)

Loads Container Statistics for Collection instance

  • access: public
  • todo: Revamp
unknown dbLoadContainerCount ()
dbLoadContent (line 282)

Loads Content for Collection instance

  • access: public
boolean dbLoadContent ([ $RootContentID = LOADCONTENT_ALL], integer $RootContentID[optional])
  • integer $RootContentID[optional]: Specifies which top level container to pull content from. LOADCONTENT defines may be used to grab all content or no content with this function
  • $RootContentID
dbLoadCreators (line 397)

Loads Creators for Collection instance

  • access: public
boolean dbLoadCreators ()
dbLoadLanguages (line 451)

Loads Languages for Collection instance

  • access: public
boolean dbLoadLanguages ()
dbLoadLocationEntries (line 495)

Loads Location Entries for Collection instance

  • access: public
boolean dbLoadLocationEntries ()
dbLoadRelatedObjects (line 546)

Loads All Related Objects for Collection instance

  • access: public
boolean dbLoadRelatedObjects ()
dbLoadRootContent (line 631)

Loads Root-level Content for Collection instance

  • access: public
boolean dbLoadRootContent ()
dbLoadSubjects (line 678)

Loads Subjects for Collection instance

  • access: public
boolean dbLoadSubjects ()
dbRelateCreator (line 742)

Relate Creator to Collection

  • access: public
boolean dbRelateCreator (integer $CreatorID)
  • integer $CreatorID
dbRelateLanguage (line 857)

Relate Language to Collection

  • access: public
boolean dbRelateLanguage (integer $LanguageID)
  • integer $LanguageID
dbRelateSubject (line 951)

Relate Subject to Collection

  • access: public
boolean dbRelateSubject (integer $SubjectID)
  • integer $SubjectID
dbStoreCollection (line 1054)

Stores Collection to the database

If the ID value has been set, dbStore will try to update an existing collection. Otherwise, it will add a new collection.

IMPORTANT:

dbStore will NOT store any information added/modified to ANY member objects! If you wish to update the database entries for member objects, you will need to separately call the object's dbStore method.

  • access: public
boolean dbStoreCollection ()
dbUnrelateAllCreators (line 1414)

Unrelates all creators for collection

  • access: public
boolean dbUnrelateAllCreators ()
dbUnrelateAllLanguages (line 1484)

Unrelates all languages for collection

  • access: public
boolean dbUnrelateAllLanguages ()
dbUnrelateAllSubjects (line 1552)

Unrelates all subjects for collection

  • access: public
boolean dbUnrelateAllSubjects ()
dbUnrelateCreator (line 1622)

Unrelate Creator from Collection

  • access: public
boolean dbUnrelateCreator (integer $CreatorID)
  • integer $CreatorID
dbUnrelateLanguage (line 1709)

Unrelate Language from Collection

  • access: public
boolean dbUnrelateLanguage (integer $LanguageID)
  • integer $LanguageID
dbUnrelateSubject (line 1796)

Unrelate Subject from Collection

  • access: public
boolean dbUnrelateSubject (integer $SubjectID)
  • integer $SubjectID
rootContentIDsSet (line 1880)

Checks to see if all RootContentIDs for this collection are set

  • access: public
boolean rootContentIDsSet ()
toString (line 1917)

Returns a formatted string of a traversal of subject instance

  • access: public
string toString ([ $MakeIntoLink = LINK_NONE], [ $ConcatinateCollectionIdentifier = false], integer $MakeIntoLink[optional])
  • integer $MakeIntoLink[optional]
  • $MakeIntoLink
  • $ConcatinateCollectionIdentifier

Documentation generated on Thu, 14 Aug 2008 20:21:23 -0500 by phpDocumentor 1.3.1