Catalogs
in package
implements
IteratorAggregate
PHP library to access FDSN Webservices and request Catalogs
Table of Contents
Interfaces
- IteratorAggregate
Constants
- fdsnSupportedVersion = '^1.60'
Properties
- $catalogsArray : array<string|int, mixed>
- $catalogsDOM : DOMDocument
- $catalogsXMLString : string
- $counter : int
- $fdns_server : string
- $url : string
- $webserviceFullPath : string
Methods
- __construct() : mixed
- DOMCatalogs() : DOMDocument
- Get Catalogs parsed in a DOM Document
- getIterator() : array<string|int, mixed>
- Iterate over catalogis found
- getNumRows() : int
- Return the number of elems found
- rawXMLCatalogs() : string
- Get RAW Catalogs XML String
- fdsnSupportedVersion() : bool
- Check if FDSN server version is supported
- parseCatalogs() : void
- Parse XML Catalogs and store it into a DOM Document AND all values found into an Iterable array
- retrieveCatalogs() : string
- Connect to FDSN server to retrieve working version
Constants
fdsnSupportedVersion
public
mixed
fdsnSupportedVersion
= '^1.60'
Properties
$catalogsArray
private
array<string|int, mixed>
$catalogsArray
$catalogsDOM
private
DOMDocument
$catalogsDOM
$catalogsXMLString
private
string
$catalogsXMLString
$counter
private
int
$counter
= 0
$fdns_server
private
string
$fdns_server
$url
private
string
$url
$webserviceFullPath
private
string
$webserviceFullPath
Methods
__construct()
public
__construct(string|null $fdns_server) : mixed
Parameters
- $fdns_server : string|null
DOMCatalogs()
Get Catalogs parsed in a DOM Document
public
DOMCatalogs() : DOMDocument
Return values
DOMDocument —Get Catalogs parsed in a DOMDocument
getIterator()
Iterate over catalogis found
public
getIterator() : array<string|int, mixed>
Return values
array<string|int, mixed> —array of \Fdsn\DataStructure\Catalog obj
getNumRows()
Return the number of elems found
public
getNumRows() : int
Return values
int —The number of elems found
rawXMLCatalogs()
Get RAW Catalogs XML String
public
rawXMLCatalogs() : string
Return values
string —Get RAW Catalogs XML String
fdsnSupportedVersion()
Check if FDSN server version is supported
private
fdsnSupportedVersion() : bool
Return values
boolparseCatalogs()
Parse XML Catalogs and store it into a DOM Document AND all values found into an Iterable array
private
parseCatalogs() : void
retrieveCatalogs()
Connect to FDSN server to retrieve working version
private
retrieveCatalogs() : string
Return values
string —FDSN running version found (trimmed by newline)