Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
MetadataRecord Class Reference

Public Member Functions

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

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 35 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 82 of file MetadataRecord.inc.php.

& MetadataRecord::getDescriptions ( )

Get all descriptions

Returns
array statements

Definition at line 72 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 58 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 101 of file MetadataRecord.inc.php.

References addDescription().


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