diff --git a/RestConnection.inc b/RestConnection.inc index 84c3c3e8..b8ccaec5 100644 --- a/RestConnection.inc +++ b/RestConnection.inc @@ -1,6 +1,27 @@ $connection = new RepositoryConnection($url, $user->name, $user->password); + $this->$connection->reuseConnection = TRUE; + $this->api = new FedoraApi($connection); + $this->cache = new SimpleCache(); + $this->repository = new FedoraRepository($api,$cache); + } +} - -?> diff --git a/islandora.api.php b/islandora.api.php index 67f8c98a..da949ffa 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -9,3 +9,12 @@ function hook_islandora_view_object($object_id){} function hook_islandora_get_types(){} function hook_islandora_add_datastream($object_id) {} + +/** + * creates and populates a php Fedora object. + */ +function hook_islandora_preingest_alter(){} + +function hook_islandora_postingest($object){} + +function hook_islandora_datastream_edit($object, $dsid){} \ No newline at end of file