You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1016 B
44 lines
1016 B
14 years ago
|
<?php
|
||
|
// $Id$
|
||
|
|
||
|
/*
|
||
|
* To change this template, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Description of relsext
|
||
|
*
|
||
|
* @author aoneill
|
||
|
*/
|
||
|
class RelsExt {
|
||
|
// Instance variables
|
||
|
public $relsExtArray = array();
|
||
|
private $originalRelsExtArray = array(); // Used to determine the result of modified() funciton.
|
||
|
// Member functions
|
||
|
|
||
|
/**
|
||
|
* Constructor that builds itself by retrieving the RELS-EXT stream from
|
||
|
* the repository for the given Fedora_Item.
|
||
|
* @param Fedora_Item $item
|
||
|
*/
|
||
|
function RelsExt( $item ) {
|
||
|
$relsextxml = $item->get_datastream_dissemination('RELS-EXT');
|
||
|
|
||
|
}
|
||
|
|
||
|
function modified() {
|
||
|
return !(empty(array_diff($this->relsExtArray, $this->originalRelsExtArray)) &&
|
||
|
empty(array_diff($this->originalRelsExtArray, $this->relsExtArray)));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Save the current state of the RELS-EXT array out to the repository item
|
||
|
* as a datastream.
|
||
|
*/
|
||
|
function save() {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|