Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
MetadataRecord Class Reference

Public Member Functions

 addDescription ($metadataDescription, $replace=true)
 
getDescription ($applicationEntityId)
 
getDescriptions ()
 
 removeDescription ($applicationEntityId)
 
 setDescriptions (&$descriptions)
 

Public Attributes

 $_descriptions = array()
 

Detailed Description

Class modeling a meta-data record (DCMI abstract model: an instance of a description set, RDF: a graph of several subject nodes with associated object nodes).

See Also
MetadataProperty
MetadataDescription

Definition at line 21 of file MetadataRecord.inc.php.

Member Function Documentation

MetadataRecord::addDescription (   $metadataDescription,
  $replace = true 
)

Add a meta-data description.

Parameters
$metadataDescriptionMetadataDescription
$replacewhether to replace a description if a description for the same application entity instance already exists.
Returns
boolean true if a valid description was added, otherwise false

Definition at line 38 of file MetadataRecord.inc.php.

Referenced by setDescriptions().

& MetadataRecord::getDescription (   $applicationEntityId)

Get a specific description

Parameters
$applicationEntityIdstring consisting of 'assocType:assocId'
Returns
boolean true if the description was found and removed, otherwise false
See Also
MetadataRecord::getApplicationEntityIdFromMetadataDescription()

Definition at line 85 of file MetadataRecord.inc.php.

& MetadataRecord::getDescriptions ( )

Get all descriptions

Returns
array statements

Definition at line 75 of file MetadataRecord.inc.php.

MetadataRecord::removeDescription (   $applicationEntityId)

Remove description.

Parameters
$applicationEntityIdstring consisting of 'assocType:assocId'
Returns
boolean true if the description was found and removed, otherwise false
See Also
MetadataRecord::getApplicationEntityIdFromMetadataDescription()

Definition at line 61 of file MetadataRecord.inc.php.

MetadataRecord::setDescriptions ( $descriptions)

Replace all descriptions at once. If one of the descriptions is invalid then the meta-data record will be empty after this operation.

Parameters
$descriptionsarray descriptions
Returns
boolean true if all descriptions could be added, false otherwise

Definition at line 104 of file MetadataRecord.inc.php.

References addDescription().

Member Data Documentation

array MetadataRecord::$_descriptions = array()

the MetadataDescriptions in this record

Definition at line 26 of file MetadataRecord.inc.php.


The documentation for this class was generated from the following file: