Documentation

Webservice
in package
implements IteratorAggregate

AbstractYes

PHP library to access FDSN Webservices and request Catalogs

Table of Contents

Interfaces

IteratorAggregate

Constants

basePath  = 'https://%s/fdsnws/event/1'
defaultFdsnServer  = 'webservices.ms.ingv.it'
fdsnSupportedVersion  = '^1.6'

Properties

$arrayOfResults  : array<string|int, mixed>
$fdsn_server  : string
$version  : string
$webserviceFullPath  : string

Methods

__construct()  : mixed
fetch()  : int
Fetch data from selected FDSN server
getIterator()  : array<string|int, mixed>
Iterate over catalogis found
numRows()  : int
Return the number of elems found
version()  : string
Get FDSN running version
getFetch()  : string
Fetch data from selected FDSN server
fdsnSupportedVersion()  : bool
Check if FDSN server version is supported

Constants

basePath

public Base basePath = 'https://%s/fdsnws/event/1'

URL to compile with FDSN server url

defaultFdsnServer

public Default defaultFdsnServer = 'webservices.ms.ingv.it'

server url

fdsnSupportedVersion

public Max fdsnSupportedVersion = '^1.6'

supported version

Properties

$arrayOfResults

protected array<string|int, mixed> $arrayOfResults = array()

$webserviceFullPath

protected string $webserviceFullPath

Methods

__construct()

public __construct([string $fdsn_server = self::defaultFdsnServer ]) : mixed
Parameters
$fdsn_server : string = self::defaultFdsnServer

fetch()

Fetch data from selected FDSN server

public abstract fetch() : int
Return values
int

number of data found

getIterator()

Iterate over catalogis found

public getIterator() : array<string|int, mixed>
Return values
array<string|int, mixed>

array of \Fdsn\DataStructure\Catalog obj

numRows()

Return the number of elems found

public numRows() : int
Return values
int

The number of elems found

version()

Get FDSN running version

public version() : string
Return values
string

FDSN running version (trimmed by newline)

getFetch()

Fetch data from selected FDSN server

protected getFetch(string $url) : string
Parameters
$url : string
Return values
string

downloaded string

fdsnSupportedVersion()

Check if FDSN server version is supported

private fdsnSupportedVersion() : bool
Return values
bool

        
On this page

Search results