|
dmBridge PHP API
|
Encapsulates a CONTENTdm(R) collection. More...
Inheritance diagram for DMCollection:Encapsulates a CONTENTdm(R) collection.
Definition at line 15 of file DMCollection.php.
| DMCollection::__construct | ( | $ | alias | ) |
To instantiate a generic collection, supply an alias with value of /dmdefault.
| alias |
| DMUnavailableModelException |
Definition at line 111 of file DMCollection.php.
| DMCollection::__toString | ( | ) |
The return value of this method may change and should not be depended on.
Definition at line 122 of file DMCollection.php.
| DMCollection::addFacet | ( | DMFacetTerm $ | term | ) |
| DMFacetTerm | term |
Definition at line 280 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::addField | ( | DMDCElement $ | element | ) |
| DMECElement | element |
Definition at line 301 of file DMCollection.php.
| DMCollection::addGridViewField | ( | DMDCElement $ | field | ) |
| DMDCElement | field |
Definition at line 350 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::addViewerDefinition | ( | DMObjectViewerDefinition $ | vd | ) |
| DMObjectViewerDefinition | vd |
Definition at line 549 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::equals | ( | $ | obj | ) |
| static DMCollection::exists | ( | $ | alias | ) | [static, final] |
| string | alias |
Definition at line 87 of file DMCollection.php.
Referenced by DMCollectionFactory::getCollection(), DMObjectQuery::getURI(), and DMAPICollectionController::view().
| DMCollection::getAlias | ( | ) |
Definition at line 139 of file DMCollection.php.
Referenced by __toString(), DMTEObjectController::compoundSearch(), UNLVSpatialSQLiteDataStore::deleteAllObjectsInCollection(), UNLVSpatialMySQLDataStore::deleteAllObjectsInCollection(), equals(), DMObject::exists(), DMPDODataStore::getMedianNumCommentsPerObjectInCollection(), DMPDODataStore::getMedianNumRatingsPerObjectInCollection(), DMPDODataStore::getMedianNumTagsPerObjectInCollection(), getName(), getNumObjects(), DMPDODataStore::getNumRatingsInCollection(), UNLVSpatialSQLiteDataStore::getObject(), UNLVSpatialMySQLDataStore::getObject(), DMObjectFactory::getObject(), getURI(), DMTemplateSet::isAuthorizedToViewCollection(), isDefault(), DMConfigXML::saveCollection(), DMTemplateSet::setDefaultCollection(), DMXMLRepresentationTransformerV1::transformCollection(), DMJSONRepresentationTransformerV1::transformCollection(), and DMTEObjectController::view().
| static DMCollection::getAuthorized | ( | ) | [static] |
Definition at line 64 of file DMCollection.php.
Referenced by DMConfigXML::getDomDocument(), DMGenericTemplateHelper::getHtmlCollectionsAsPulldown(), UNLVRandomAddForm::init(), UNLVHighlightAddForm::init(), DMCPTemplateSetForm::init(), DMConfigXML::loadTemplateSet(), and DMTESitemapController::view().
| DMCollection::getDateSearchBeginYear | ( | ) |
Definition at line 206 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::getDateSearchEndYear | ( | ) |
Definition at line 213 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::getDateSearchField | ( | ) |
Loops through the collection's array of fields and returns the first date element it comes across.
Definition at line 247 of file DMCollection.php.
| DMCollection::getDescription | ( | ) |
Definition at line 258 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection(), DMXMLRepresentationTransformerV1::transformCollection(), and DMJSONRepresentationTransformerV1::transformCollection().
| DMCollection::getFacets | ( | ) |
Definition at line 287 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::getField | ( | $ | nick | ) |
| string | nick The field nickname that is used internally by CONTENTdm(R) |
$nick, or null if a field with nickname $nick does not exist. Definition at line 314 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::getFields | ( | ) |
Definition at line 336 of file DMCollection.php.
Referenced by getDateSearchField(), getField(), DMConfigXML::loadCollection(), DMConfigXML::saveCollection(), DMXMLRepresentationTransformerV1::transformCollection(), and DMJSONRepresentationTransformerV1::transformCollection().
| DMCollection::getGridViewFields | ( | ) |
Definition at line 357 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::getImage512URI | ( | ) |
Returns the URI of a representative image for the collection.
The image will be 512 pixels on its longest side.
Definition at line 374 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection(), DMXMLRepresentationTransformerV1::transformCollection(), and DMJSONRepresentationTransformerV1::transformCollection().
| DMCollection::getName | ( | ) |
Returns the name of the collection, as defined in the CONTENTdm(R) system.
Note: If the current user does not have access to the collection, the collection will be named "Untitled Collection," due to a bug/feature of the CONTENTdm(R) dmGetCollectionList() API function.
Definition at line 428 of file DMCollection.php.
Referenced by DMXMLRepresentationTransformerV1::transformCollection(), and DMJSONRepresentationTransformerV1::transformCollection().
| DMCollection::getNumObjects | ( | ) |
Definition at line 447 of file DMCollection.php.
Referenced by DMPDODataStore::getMeanNumCommentsPerObjectInCollection(), DMPDODataStore::getMeanNumRatingsPerObjectInCollection(), DMPDODataStore::getMeanNumTagsPerObjectInCollection(), DMPDODataStore::getMedianNumCommentsPerObjectInCollection(), DMPDODataStore::getMedianNumRatingsPerObjectInCollection(), DMPDODataStore::getMedianNumTagsPerObjectInCollection(), UNLVSpatialIndexer::reindex(), DMXMLRepresentationTransformerV1::transformCollection(), and DMJSONRepresentationTransformerV1::transformCollection().
| DMCollection::getOverviewURI | ( | ) |
Definition at line 463 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection(), DMXMLRepresentationTransformerV1::transformCollection(), and DMJSONRepresentationTransformerV1::transformCollection().
| DMCollection::getResultsViewFields | ( | ) |
Returns an array of all DMDCElement objects that are to be displayed in grid view.
Definition at line 497 of file DMCollection.php.
| static DMCollection::getSanitizedAlias | ( | $ | alias | ) | [static] |
| string | alias |
Definition at line 99 of file DMCollection.php.
Referenced by DMAPIObjectController::bitstream(), DMTEObjectController::comments(), DMTEObjectController::compoundSearch(), DMAPIObjectController::compoundSearch(), DMAPIObjectController::excerpt(), DMAPIVocabularyController::frequency(), DMAPIObjectController::highestRated(), UNLVSpatialController::index(), DMTEObjectController::index(), DMAPITagController::index(), DMAPIObjectController::index(), DMAPICommentController::index(), DMTEUserController::logout(), DMAPIVocabularyController::suggest(), DMAPIObjectController::thumbnail(), UNLVSpatialController::view(), DMTEObjectController::view(), DMAPIObjectController::view(), and DMAPICollectionController::view().
| DMCollection::getTemplateSet | ( | ) |
Definition at line 505 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::getURI | ( | ) |
| DMCollection::getViewerDefinitionForMediaType | ( | DMMediaType $ | type | ) |
| DMMediaType | type |
Definition at line 558 of file DMCollection.php.
| DMCollection::getViewerDefinitions | ( | ) |
Definition at line 570 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::hasCustomObjectViewPrefs | ( | ) |
Definition at line 164 of file DMCollection.php.
| DMCollection::hasCustomResultsViewPrefs | ( | ) |
Definition at line 178 of file DMCollection.php.
| DMCollection::hasCustomSearchViewPrefs | ( | ) |
Definition at line 192 of file DMCollection.php.
| DMCollection::isDefault | ( | ) |
Definition at line 273 of file DMCollection.php.
| DMCollection::isRedirectingReferenceURLs | ( | ) |
Definition at line 478 of file DMCollection.php.
Referenced by DMConfigXML::saveCollection().
| DMCollection::isUsingDefaultTemplateSet | ( | ) |
Definition at line 532 of file DMCollection.php.
| DMCollection::setDateSearchRange | ( | $ | begin_year, |
| $ | end_year | ||
| ) |
| int | begin_year Four-digit year |
| int | end_year Four-digit year |
| DMIllegalArgumentException | if $end_year is earlier than $begin_year |
Definition at line 223 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setDescription | ( | $ | desc | ) |
| string | desc A brief description of the collection. |
Definition at line 265 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setHasCustomObjectViewPrefs | ( | $ | bool | ) |
| Boolean | bool |
Definition at line 171 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setHasCustomResultsViewPrefs | ( | $ | bool | ) |
| Boolean | bool |
Definition at line 185 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setHasCustomSearchViewPrefs | ( | $ | bool | ) |
| Boolean | bool |
Definition at line 199 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setImage512URI | ( | DMURI $ | uri | ) |
| DMURI | uri The URI of a representative image for the collection. The image should be 512 pixels on its longest side and compressed for fast downloading. |
Definition at line 383 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setOverviewURI | ( | DMURI $ | uri | ) |
| DMURI | uri The overview URI defined in the Control Panel |
Definition at line 470 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setRedirectingReferenceURLs | ( | $ | bool | ) |
| Boolean | bool |
Definition at line 485 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setTemplateSetID | ( | $ | id | ) |
| int | id |
Definition at line 515 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection().
| DMCollection::setUsingDefaultTemplateSet | ( | $ | bool | ) |
| Boolean | bool |
Definition at line 539 of file DMCollection.php.
Referenced by DMConfigXML::loadCollection(), and setTemplateSetID().
| DMCollection::unsetDateSearchRange | ( | ) |
Definition at line 235 of file DMCollection.php.
| DMCollection::unsetFacets | ( | ) |
Definition at line 294 of file DMCollection.php.
| DMCollection::unsetFields | ( | ) |
Definition at line 343 of file DMCollection.php.
| DMCollection::unsetGridViewFields | ( | ) |
Definition at line 364 of file DMCollection.php.
| DMCollection::unsetViewerDefinitions | ( | ) |
Definition at line 577 of file DMCollection.php.