diff --git a/Westdc/Metadata/Dataset.php b/Westdc/Metadata/Dataset.php new file mode 100644 index 0000000..d0271bb --- /dev/null +++ b/Westdc/Metadata/Dataset.php @@ -0,0 +1,51 @@ +serviceManager = $serviceManager; + + $this->init(); + + return $this; + } + + private function init() + { + $dbService = $this->serviceManager->get('Db'); + $this->db = $dbService->getPdo(); + } + + /** + * @param $uuid + * @return mixed + */ + public function fetch($uuid) + { + $sql = "SELECT * FROM dataset WHERE uuid=?"; + $sth = $this->db->prepare($sql); + $sth ->execute(array($uuid)); + return $sth->fetch(); + } + + + + +} \ No newline at end of file