Documentation

DbmiToFdsn extends API
in package

Convert DBMI idQuake -> FDSN idQuake

Table of Contents

Constants

conversionUrlTemplate  = 'https://emidius.mi.ingv.it/services/rosetta/?type=event&input=%s&output=%s&format=json&parameters=yes&id=%s'

Properties

$from  : string
$idQuake  : string
$reply  : array<string|int, mixed>
$to  : string
$curlErrInfo  : string
$curlErrNum  : int

Methods

__construct()  : mixed
Constructor
curlErrorInfo()  : mixed
curlErrorNumber()  : mixed
fetch()  : int
Try to find the seismic event in DBMI database and its internal ID
quake()  : Id
Get FDSN idQuake found (if not found a \RuntimeException is raised
replyIsSet()  : bool

Constants

conversionUrlTemplate

public mixed conversionUrlTemplate = 'https://emidius.mi.ingv.it/services/rosetta/?type=event&input=%s&output=%s&format=json&parameters=yes&id=%s'

Properties

$from

protected string $from

$idQuake

protected string $idQuake

$reply

protected array<string|int, mixed> $reply

$to

protected string $to

$curlErrInfo

private string $curlErrInfo = ''

$curlErrNum

private int $curlErrNum = 0

Methods

__construct()

Constructor

public __construct(QuakeId $dbmiQuakeId) : mixed
Parameters
$dbmiQuakeId : QuakeId

QuakeID in format DBMI

curlErrorInfo()

public curlErrorInfo() : mixed

curlErrorNumber()

public curlErrorNumber() : mixed

fetch()

Try to find the seismic event in DBMI database and its internal ID

public fetch() : int
Return values
int

number of elements found (or -1 on error)

quake()

Get FDSN idQuake found (if not found a \RuntimeException is raised

public quake() : Id
Return values
Id

QuakeID in FDSN format (if conversion is possible)

replyIsSet()

protected replyIsSet() : bool
Return values
bool

        
On this page

Search results