Browse Source

Comment spacing, islandora_object_load function

pull/133/head
Jordan Dukart 13 years ago
parent
commit
3cb70d9223
  1. 53
      api/tuque.inc

53
api/tuque.inc

@ -3,15 +3,15 @@
$islandora_module_path = drupal_get_path('module', 'fedora_repository'); $islandora_module_path = drupal_get_path('module', 'fedora_repository');
//do this until we expost these in a module or library //do this until we expost these in a module or library
@include_once 'sites/default/libraries/tuque/Datastream.php'; @include_once 'sites/all/libraries/tuque/Datastream.php';
@include_once 'sites/default/libraries/tuque/FedoraApi.php'; @include_once 'sites/all/libraries/tuque/FedoraApi.php';
@include_once 'sites/default/libraries/tuque/FedoraApiSerializer.php'; @include_once 'sites/all/libraries/tuque/FedoraApiSerializer.php';
@include_once 'sites/default/libraries/tuque/Object.php'; @include_once 'sites/all/libraries/tuque/Object.php';
@include_once 'sites/default/libraries/tuque/RepositoryConnection.php'; @include_once 'sites/all/libraries/tuque/RepositoryConnection.php';
@include_once 'sites/default/libraries/tuque/Cache.php'; @include_once 'sites/all/libraries/tuque/Cache.php';
@include_once 'sites/default/libraries/tuque/RepositoryException.php'; @include_once 'sites/all/libraries/tuque/RepositoryException.php';
@include_once 'sites/default/libraries/tuque/Repository.php'; @include_once 'sites/all/libraries/tuque/Repository.php';
@include_once 'sites/default/libraries/tuque/FedoraRelationships.php'; @include_once 'sites/all/libraries/tuque/FedoraRelationships.php';
@include_once "$islandora_module_path/libraries/tuque/Datastream.php"; @include_once "$islandora_module_path/libraries/tuque/Datastream.php";
@include_once "$islandora_module_path/libraries/tuque/FedoraApi.php"; @include_once "$islandora_module_path/libraries/tuque/FedoraApi.php";
@ -26,31 +26,31 @@ $islandora_module_path = drupal_get_path('module', 'fedora_repository');
class IslandoraTuque { class IslandoraTuque {
/** /**
* Connection to the repository * Connection to the repository
* *
* @var RepositoryConnection * @var RepositoryConnection
*/ */
public $connection = NULL; public $connection = NULL;
/** /**
* The Fedora API we are using * The Fedora API we are using
* *
* @var FedoraAPI * @var FedoraAPI
*/ */
public $api = NULL; public $api = NULL;
/** /**
* The cache we use to connect. * The cache we use to connect.
* *
* @var SimpleCache * @var SimpleCache
*/ */
public $cache = NULL; public $cache = NULL;
/** /**
* The repository object. * The repository object.
* *
* @var FedoraRepository * @var FedoraRepository
*/ */
public $repository = NULL; public $repository = NULL;
function __construct($user = NULL, $url = NULL) { function __construct($user = NULL, $url = NULL) {
@ -77,7 +77,6 @@ class IslandoraTuque {
$this->cache = new SimpleCache(); $this->cache = new SimpleCache();
$this->repository = new FedoraRepository($this->api, $this->cache); $this->repository = new FedoraRepository($this->api, $this->cache);
} }
} }
static function exists() { static function exists() {
@ -90,8 +89,6 @@ class IslandoraTuque {
$message = t('Islandora requires the !tuque_url. Please install in /sites/all/libraries/tuque before continuing. See the !islandora_url.', array( '!tuque_url' => $tuque_link, '!islandora_url' => $islandora_doc_link)); $message = t('Islandora requires the !tuque_url. Please install in /sites/all/libraries/tuque before continuing. See the !islandora_url.', array( '!tuque_url' => $tuque_link, '!islandora_url' => $islandora_doc_link));
drupal_set_message($message, 'error', FALSE); drupal_set_message($message, 'error', FALSE);
} }
} }
function islandora_object_load($object_id) { function islandora_object_load($object_id) {

Loading…
Cancel
Save