Returns the number of Digital Content 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 Digital Content Titles starting with that character. # represents all collections starting with a number, and * holds the total count of all collections.
integer|Array
countDigitalContent
([ $Alphabetical = false], boolean $Alphabetical[optional])
-
boolean
$Alphabetical[optional]
-
$Alphabetical
Creates a thumbnail of an image.
Image should contain the raw image data. Image type should contain the image format such that the function image$ImageType can be called to create the thumbnail. If only width or height is specified, the other will be calculated based upon the proportions of the original image.
void
createImageThumbnail
(string $Image, string $ImageType, [ $Width = NULL], [ $Height = NULL], integer $Width[optional], integer $Height[optional])
-
string
$Image
-
string
$ImageType
-
integer
$Width[optional]
-
integer
$Height[optional]
-
$Width
-
$Height
Creates a formatted string from an array of DigitalContent objects
string
createStringFromDigitalContentArray
(DigitalContent[] $arrDigitalContent, [ $Delimiter = ', '], [ $MakeIntoLink = LINK_NONE], [ $DirectlyLinkToContentURL = false], string $Delimiter[optional], integer $MakeIntoLink[optional], boolean $DirectlyLinkToContentURL[optional])
-
DigitalContent[]
$arrDigitalContent
-
string
$Delimiter[optional]
-
integer
$MakeIntoLink[optional]
-
boolean
$DirectlyLinkToContentURL[optional]
-
$Delimiter
-
$MakeIntoLink
-
$DirectlyLinkToContentURL
Retrieves all Digital Content from the database
If $MakeIntoIndex is false, the returned array of DigitalContent objects is sorted by DigitalContent and has IDs as keys.
If $MakeIntoIndex is true, the returned array is a two dimensional array, with the first dimension indexed with
- (representing numeric characters) and the lowercase characters a-z.
Each of those arrays will contain a sorted set of DigitalContent objects, with the DigitalContent's IDs as keys.
DigitalContent[]
getAllDigitalContent
([ $MakeIntoIndex = false], [ $ExcludeDisabledContent = false], boolean $MakeIntoIndex[optional], boolean $ExcludeDisabledContent[optional])
-
boolean
$MakeIntoIndex[optional]
-
boolean
$ExcludeDisabledContent[optional]
-
$MakeIntoIndex
-
$ExcludeDisabledContent
Retrieves all Files from the database
The returned array of Files objects is sorted by Files and has IDs as keys.
Files[]
getAllFiles
([ $ExcludeDisabledFiles = false], boolean $ExcludeDisabledFiles[optional])
-
boolean
$ExcludeDisabledFiles[optional]
-
$ExcludeDisabledFiles
Retrieves all File Types from the database
The returned array of FileTypes objects is sorted by FileTypes and has IDs as keys.
FileTypes[]
getAllFileTypes
()
Retrieves all Media Types from the database
The returned array of MediaTypes objects is sorted by MediaTypes and has IDs as keys.
MediaTypes[]
getAllMediaTypes
()
Retrieves an array of DigitalContent objects that begin with the character specified by $Char
DigitalContent[]
getDigitalContentForChar
(string $Char)
Returns the appropriate FileType for a specified extension.
FileType
getFileTypeForExtension
(
string $Extension)
Returns MediaTypeID value for a media type passed as a string.
integer
getMediaTypeIDFromString
(string $String)
Searches the Digital Library database
Note that $SubjectID and $CreatorID will not affect the search if their respective packages are not installed and enabled
DigitalContent[]
searchDigitalLibrary
(string $SearchQuery, [ $SearchFlags = SEARCH_DIGITALCONTENT], $CollectionID, $CollectionContentID, $SubjectID, $CreatorID, $FileTypeID, $MediaTypeID, [ $Limit = CONFIG_CORE_SEARCH_RESULTS_LIMIT], $Offset, integer $SearchFlags[optional], integer $CollectionID[optional], integer $CollectionContentID[optional], integer $SubjectID[optional], integer $CreatorID[optional], integer $FileTypeID[optional], integer $MediaTypeID[optional], integer $Limit[optional], integer $Offset[optional])
-
string
$SearchQuery
-
integer
$SearchFlags[optional]
-
integer
$CollectionID[optional]
-
integer
$CollectionContentID[optional]
-
integer
$SubjectID[optional]
-
integer
$CreatorID[optional]
-
integer
$FileTypeID[optional]
-
integer
$MediaTypeID[optional]
-
integer
$Limit[optional]
-
integer
$Offset[optional]
-
$SearchFlags
-
$CollectionID
-
$CollectionContentID
-
$SubjectID
-
$CreatorID
-
$FileTypeID
-
$MediaTypeID
-
$Limit
-
$Offset
Searches the FileType database
FileType[]
searchFileTypes
(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