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; } } }