From 439c1640ea1fc035d159a29583e41ed49b4c24d9 Mon Sep 17 00:00:00 2001 From: William Panting Date: Thu, 29 Nov 2012 16:45:53 -0400 Subject: [PATCH] ISLANDORA-782 changed get_datastream_dissemination to not automaticaly squash errors --- api/fedora_item.inc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/api/fedora_item.inc b/api/fedora_item.inc index ae524fd9..afa26976 100644 --- a/api/fedora_item.inc +++ b/api/fedora_item.inc @@ -671,13 +671,19 @@ RDF; /** * Get datastream dissemination * - * @param type $dsid - * @param type $as_of_date_time + * @param string $dsid + * The DSID of the datastream to get the dissemination of. + * @param string $as_of_date_time + * We can get old versions of versioned datastreams. + * Defaults to now. * @param type $quiet + * Squash errors? defaults to FALSE. * - * @return null + * @return mixed + * NULL if the DS is not present in Fedora Item's datastream list. + * The content of the DS (NULL if empty) */ - function get_datastream_dissemination($dsid, $as_of_date_time = "", $quiet=TRUE) { + function get_datastream_dissemination($dsid, $as_of_date_time = "", $quiet = FALSE) { if (!array_key_exists($dsid, $this->datastreams)) { return NULL; } @@ -688,7 +694,7 @@ RDF; 'asOfDateTime' => $as_of_date_time, ); - // Make soap call with quite + // Make soap call. $object = self::soap_call('getDataStreamDissemination', $params, $quiet); if (!empty($object)) { $content = $object->dissemination->stream;