Browse Source

ISLANDORA-171 Initial add fedoraObject.inc to hold behaviour common to all objects.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
0209dbb061
  1. 18
      plugins/fedoraObject.inc

18
plugins/fedoraObject.inc

@ -0,0 +1,18 @@
<?php
class FedoraObject {
function __construct($pid = '') {
module_load_include('inc', 'fedora_repository', 'api/fedora_item');
if (!empty($pid)) {
$this->pid = $pid;
$this->item = new Fedora_Item($pid);
}
}
public function showFieldSets() {
$objHelper = new ObjectHelper();
return $objHelper->getFormattedDatastreamList($this->pid, NULL);
}
}
Loading…
Cancel
Save