westdc-zf1/application/module/Westdc/Metadata/Dataservice/Services.php

31 lines
509 B
PHP

<?php
namespace Westdc\Metadata\Dataservice;
class Services
{
private $db;
function __construct($recordType)
{
$this->db = \Zend_Registry::get('db');
}
static function getServiceType($uuid)
{
$sql = "SELECT * FROM dataservice WHERE uuid='$uuid'";
$db = \Zend_Registry::get('db');
$rs = $db->query($sql);
$row = $rs->fetch(\PDO::FETCH_ASSOC);
if(isset($row['uuid']) && !empty($row['uuid']))
{
return $row;
}else{
return NULL;
}
}
}