Contributors
in package
implements
IteratorAggregate
PHP library to access FDSN Webservices and request Contributors
Table of Contents
Interfaces
- IteratorAggregate
Constants
- fdsnSupportedVersion = '^1.60'
Properties
- $contributorsArray : array<string|int, mixed>
- $contributorsDOM : DOMDocument
- $contributorsXMLString : string
- $counter : int
- $fdns_server : string
- $url : string
- $webserviceFullPath : string
Methods
- __construct() : mixed
- DOMContributors() : DOMDocument
- Get Contributors parsed in a DOM Document
- getIterator() : array<string|int, mixed>
- Iterate over contributors found
- getNumRows() : int
- Return the number of elems found
- rawXMLContributors() : string
- Get RAW Contributors XML String
- fdsnSupportedVersion() : bool
- Check if FDSN server version is supported
- parseContributors() : void
- Parse XML Contributors and store it into a DOM Document AND all values found into an Iterable array
- retrieveContributors() : string
- Connect to FDSN server to retrieve working version
Constants
fdsnSupportedVersion
public
mixed
fdsnSupportedVersion
= '^1.60'
Properties
$contributorsArray
private
array<string|int, mixed>
$contributorsArray
$contributorsDOM
private
DOMDocument
$contributorsDOM
$contributorsXMLString
private
string
$contributorsXMLString
$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
DOMContributors()
Get Contributors parsed in a DOM Document
public
DOMContributors() : DOMDocument
Return values
DOMDocument —Get Contributors parsed in a DOMDocument
getIterator()
Iterate over contributors found
public
getIterator() : array<string|int, mixed>
Return values
array<string|int, mixed> —array of \Fdsn\DataStructure\Contributor obj
getNumRows()
Return the number of elems found
public
getNumRows() : int
Return values
int —The number of elems found
rawXMLContributors()
Get RAW Contributors XML String
public
rawXMLContributors() : string
Return values
string —Get RAW Contributors XML String
fdsnSupportedVersion()
Check if FDSN server version is supported
private
fdsnSupportedVersion() : bool
Return values
boolparseContributors()
Parse XML Contributors and store it into a DOM Document AND all values found into an Iterable array
private
parseContributors() : void
retrieveContributors()
Connect to FDSN server to retrieve working version
private
retrieveContributors() : string
Return values
string —FDSN running version found (trimmed by newline)