Contributors
in package
implements
IteratorAggregate
PHP library to access FDSN Webservices and request Contributors
Table of Contents
Interfaces
- IteratorAggregate
Properties
- $contributorsArray : array<string|int, mixed>
- $contributorsDOM : DOMDocument
- $contributorsXMLString : string
- $counter : int
- $fdsn_server : string
- $url : string
- $webserviceFullPath : string
Methods
- __construct() : mixed
- DOMContributors() : DOMDocument
- Get Contributors parsed in a DOM Document
- fetch() : int
- Fetch contributors (xml document) from selected FDSN server
- 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
- parse() : int
- Parse XML Contributors and store it into a DOM Document AND all values found into an Iterable array
Properties
$contributorsArray
private
array<string|int, mixed>
$contributorsArray
$contributorsDOM
private
DOMDocument
$contributorsDOM
$contributorsXMLString
private
string
$contributorsXMLString
$counter
private
int
$counter
= 0
$fdsn_server
private
string
$fdsn_server
$url
private
string
$url
$webserviceFullPath
private
string
$webserviceFullPath
Methods
__construct()
public
__construct(string|null $fdsn_server) : mixed
Parameters
- $fdsn_server : string|null
DOMContributors()
Get Contributors parsed in a DOM Document
public
DOMContributors() : DOMDocument
Return values
DOMDocument —Get Contributors parsed in a DOMDocument
fetch()
Fetch contributors (xml document) from selected FDSN server
public
fetch() : int
Return values
int —number of catalogs found
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
boolparse()
Parse XML Contributors and store it into a DOM Document AND all values found into an Iterable array
private
parse(string $xmlResponse) : int
Parameters
- $xmlResponse : string
Return values
int —number of contributors found