Class Collection

(line 24)

Description


Located in File: /lib/collection.inc.php

Collection Object Definition


Class Variables

Summary:
string $AccrualInfo
string $Arrangement
Classification $Classification
CollectionContent[] $Content
Creator[] $Creators
DescRules $DescRules
integer $DescRulesID
bit $Enabled
string $Extent
ExtentUnits $ExtentUnits
integer $ExtentUnitsID
integer $ID
Language[] $Languages
LocationEntry[] $LocationEntries
MaterialType $MaterialType
integer $MaterialTypeID
string $OtherNote
string $OtherURL
Repository $Repository
integer $RepositoryID
string $Scope
string $SortTitle
Subject[] $Subjects
string $TemplateSet
string $Title

$AccessRestrictions = NULL (line 1957)

Data type : string

  • access: - public

$AccrualInfo = NULL (line 1985)

Data type : string

  • access: - public

$AcquisitionDate = NULL (line 1979)

Data type : string

Format: YYYYMMDD
  • access: - public

$AcquisitionDateDay (line 2046)

Data type : string

  • access: - public

$AcquisitionDateMonth (line 2043)

Data type : string

  • access: - public

$AcquisitionDateYear (line 2049)

Data type : string

  • access: - public

$AcquisitionMethod = NULL (line 1972)

Data type : string

  • access: - public

$AcquisitionSource = NULL (line 1969)

Data type : string

  • access: - public

$AltExtentStatement = NULL (line 1954)

Data type : string

  • access: - public

$AppraisalInfo = NULL (line 1982)

Data type : string

  • access: - public

$Arrangement = NULL (line 1948)

Data type : string

  • access: - public

$Classification = NULL (line 2108)

Data type : Classification

  • access: - public

$ClassificationID = 0 (line 1907)

Data type : integer

  • access: - public

$CollectionIdentifier = NULL (line 1912)

Data type : string

  • access: - public

$Content = array() (line 2070)

Data type : CollectionContent[]

Array containing Content for Collection
  • access: - public

$Creators = array() (line 2077)

Data type : Creator[]

Array containing Creators for Collection
  • access: - public

$CustodialHistory = NULL (line 1988)

Data type : string

  • access: - public

$DescRules = NULL (line 2128)

Data type : DescRules

Descriptive Rules Used for the Finding Aid
  • access: - public

$DescRulesID = 0 (line 2015)

Data type : integer

  • access: - public

$Enabled = 0 (line 1901)

Data type : bit

  • access: - public

$Extent = NULL (line 1936)

Data type : string

  • access: - public

$ExtentUnits = NULL (line 2111)

Data type : ExtentUnits

  • access: - public

$ExtentUnitsID = 0 (line 1939)

Data type : integer

  • access: - public

$FindingAidAuthor = NULL (line 1933)

Data type : string

  • access: - public

$FindingLanguage = NULL (line 2121)

Data type : Language

Language of the Finding Aid
  • access: - public

$FindingLanguageID = 0 (line 2034)

Data type : integer

  • access: - public

$ID = 0 (line 1898)

Data type : integer

  • access: - public

$InclusiveDates = NULL (line 1921)

Data type : string

  • access: - public

$Languages = array() (line 2098)

Data type : Language[]

Array containing Languages for Collection
  • access: - public

$LocationEntries = array() (line 2091)

Data type : LocationEntry[]

Array containing Location Entries for Collection
  • access: - public

$MaterialType = NULL (line 2114)

Data type : MaterialType

  • access: - public

$MaterialTypeID = 0 (line 1951)

Data type : integer

  • access: - public

$NormalDateBegin = NULL (line 1927)

Data type : string

  • access: - public

$NormalDateEnd = NULL (line 1930)

Data type : string

  • access: - public

$OrigCopiesNote = NULL (line 1991)

Data type : string

  • access: - public

$OrigCopiesURL = NULL (line 1994)

Data type : string

  • access: - public

$OtherNote = NULL (line 2009)

Data type : string

  • access: - public

$OtherURL = NULL (line 2012)

Data type : string

  • access: - public

$PhysicalAccess = NULL (line 1963)

Data type : string

  • access: - public

$PredominantDates = NULL (line 1924)

Data type : string

  • access: - public

$PreferredCitation = NULL (line 2006)

Data type : string

  • access: - public

$PrimaryCreator = NULL (line 2136)

Data type : Creator

Creator Object of the Primary Creator for Collection
  • access: - public

$ProcessingInfo = NULL (line 2018)

Data type : string

  • access: - public

$PublicationDate = NULL (line 2028)

Data type : string

Format: YYYYMMDD
  • access: - public

$PublicationDateDay (line 2055)

Data type : string

  • access: - public

$PublicationDateMonth (line 2052)

Data type : string

  • access: - public

$PublicationDateYear (line 2058)

Data type : string

  • access: - public

$PublicationNote = NULL (line 2031)

Data type : string

  • access: - public

$RelatedMaterials = NULL (line 1997)

Data type : string

  • access: - public

$RelatedMaterialsURL = NULL (line 2000)

Data type : string

  • access: - public

$RelatedPublications = NULL (line 2003)

Data type : string

  • access: - public

$Repository = NULL (line 2105)

Data type : Repository

Repository where the Collection is stored
  • access: - public

$RepositoryID = 0 (line 1904)

Data type : integer

  • access: - public

$RevisionHistory = NULL (line 2021)

Data type : string

  • access: - public

$Scope = NULL (line 1945)

Data type : string

  • access: - public

$SortTitle = NULL (line 1918)

Data type : string

  • access: - public

$Subjects = array() (line 2084)

Data type : Subject[]

Array containing Subjects for Collection
  • access: - public

$TechnicalAccess = NULL (line 1966)

Data type : string

  • access: - public

$TemplateSet = NULL (line 1942)

Data type : string

  • access: - public

$Title = NULL (line 1915)

Data type : string

  • access: - public

$UseRestrictions = NULL (line 1960)

Data type : string

  • access: - public

Class Constants

Summary:

Method Detail

Summary:
Collection Collection ([integer|array $ID_or_Row = NULL])
boolean dbDeleteCollection ()
boolean dbLoadAll ()
boolean dbLoadCollection ()
boolean dbLoadContent ()
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)
void toString ([ $MakeIntoLink = LINK_NONE])
string __toString ()

Constructor Collection (line 40)

Collection Collection( [integer|array $ID_or_Row = NULL])

Collection Constructor

If ID is passed as an argument, no data will be loaded until some varation of dbLoad is called.

If a table row is passed as an argument, the array will be parsed, and object variables will be assigned.

Parameters

  • integer|array $ID_or_Row: Collection ID or array containing row from tblCol_Collections

Info

  • access - public

Method dbDeleteCollection (line 76)

boolean dbDeleteCollection( )

Deletes Collection from the database

Info

  • access - public

Method dbLoadAll (line 191)

boolean dbLoadAll( )

Loads Collection and all related data and objects

Loaded objects which may contain multiple instances:

  • Content
  • Creators
  • Locations
  • Subjects
Loaded objects which will only contain one instance:

  • Repository
  • Classification
  • ExtentUnits
  • MaterialType
  • Language
  • FindingLanguage
This function is the most expensive of any in the project. It should ONLY be called when an entire finding aid is being generated.

Info

  • access - public

Method dbLoadCollection (line 241)

boolean dbLoadCollection( )

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().

Info

  • access - public

Method dbLoadContainerCount (line 301)

unknown dbLoadContainerCount( )

Loads Container Statistics for Collection instance

Info

  • access - public
  • todo - Revamp

Method dbLoadContent (line 355)

boolean dbLoadContent( )

Loads Content for Collection instance

Info

  • access - public

Method dbLoadCreators (line 468)

boolean dbLoadCreators( )

Loads Creators for Collection instance

Info

  • access - public

Method dbLoadLanguages (line 526)

boolean dbLoadLanguages( )

Loads Languages for Collection instance

Info

  • access - public

Method dbLoadLocationEntries (line 568)

boolean dbLoadLocationEntries( )

Loads Location Entries for Collection instance

Info

  • access - public

Method dbLoadRelatedObjects (line 617)

boolean dbLoadRelatedObjects( )

Loads All Related Objects for Collection instance

Info

Method dbLoadRootContent (line 702)

boolean dbLoadRootContent( )

Loads Root-level Content for Collection instance

Info

  • access - public

Method dbLoadSubjects (line 747)

boolean dbLoadSubjects( )

Loads Subjects for Collection instance

Info

  • access - public

Method dbRelateCreator (line 809)

boolean dbRelateCreator( integer $CreatorID)

Relate Creator to Collection

Parameters

  • integer $CreatorID:

Info

  • access - public

Method dbRelateLanguage (line 922)

boolean dbRelateLanguage( integer $LanguageID)

Relate Language to Collection

Parameters

  • integer $LanguageID:

Info

  • access - public

Method dbRelateSubject (line 1009)

boolean dbRelateSubject( integer $SubjectID)

Relate Subject to Collection

Parameters

  • integer $SubjectID:

Info

  • access - public

Method dbStoreCollection (line 1105)

boolean dbStoreCollection( )

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 seperately call the object's dbStore method.

Info

  • access - public

Method dbUnrelateAllCreators (line 1423)

boolean dbUnrelateAllCreators( )

Unrelates all creators for collection

Info

  • access - public

Method dbUnrelateAllLanguages (line 1485)

boolean dbUnrelateAllLanguages( )

Unrelates all languages for collection

Info

  • access - public

Method dbUnrelateAllSubjects (line 1546)

boolean dbUnrelateAllSubjects( )

Unrelates all subjects for collection

Info

  • access - public

Method dbUnrelateCreator (line 1609)

boolean dbUnrelateCreator( integer $CreatorID)

Unrelate Creator from Collection

Parameters

  • integer $CreatorID:

Info

  • access - public

Method dbUnrelateLanguage (line 1687)

boolean dbUnrelateLanguage( integer $LanguageID)

Unrelate Language from Collection

Parameters

  • integer $LanguageID:

Info

  • access - public

Method dbUnrelateSubject (line 1765)

boolean dbUnrelateSubject( integer $SubjectID)

Unrelate Subject from Collection

Parameters

  • integer $SubjectID:

Info

  • access - public

Method toString (line 1837)

void toString( [ $MakeIntoLink = LINK_NONE])

Parameters

  • $MakeIntoLink:

Info

  • access - public

Method __toString (line 1881)

string __toString( )

Outputs Collection Title if Collection is cast to string

Info

  • access - public
  • magic -

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Wed, 10 Jan 2007 15:37:24 -0600 by phpDocumentor 1.3.1