Documentation

Intensity
in package
implements IteratorAggregate

Fetch grid.xml intensity file from Shakemaps portal

Table of Contents

Interfaces

IteratorAggregate

Constants

curlCloceLatestPhpVersion  : mixed = 7
dataFile  : mixed = 'grid.xml'

Properties

$curlErrInfo  : string
$curlErrNum  : int
$eventId  : Id
$localFileFullPath  : string|null
$places  : array<string|int, mixed>
$server  : string

Methods

__construct()  : mixed
getIterator()  : array<string|int, mixed>
get all places intensity
fetchFromLocalPath()  : string
fetch data from local path - if $localFileFullPath is set in __construct()
fetchFromUrl()  : int
fetch data from url (remote or local - if $localFileFullPath is set in __construct)
isCurlCloseSupported()  : bool
Check if curl_close is still supported

Constants

curlCloceLatestPhpVersion

private mixed curlCloceLatestPhpVersion = 7

dataFile

private mixed dataFile = 'grid.xml'

Properties

$localFileFullPath

private string|null $localFileFullPath = null

$places

private array<string|int, mixed> $places = array()

Methods

getIterator()

get all places intensity

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

locality intensity (array of associative arrays[DS_LatLon, mmi, pga, pgv, psa03, psa10, psa30, svel])

fetchFromLocalPath()

fetch data from local path - if $localFileFullPath is set in __construct()

private fetchFromLocalPath() : string
Return values
string

Datafile read in a string or, on missing/unreadable file a RuntimeException is thrown

fetchFromUrl()

fetch data from url (remote or local - if $localFileFullPath is set in __construct)

private fetchFromUrl() : int
Return values
int

number of data found

isCurlCloseSupported()

Check if curl_close is still supported

private isCurlCloseSupported() : bool
Return values
bool

true is supported, false otherwise

On this page

Search results