|
|
# Get Catalogs
|
|
|
|
|
|
_Install and autoload library as seen in [Home](home)_
|
|
|
|
|
|
Add namespace:
|
|
|
```php
|
|
|
use Fdsn\Webservices\Catalogs as Fdsnws_Catalogs;
|
|
|
```
|
|
|
|
|
|
Create object:
|
|
|
```php
|
|
|
$obj = new Fdsnws_Catalogs('fdsn.server.com'); //default is webservices.ms.ingv.it
|
|
|
if( 0 == $obj->getNumRow() )
|
|
|
exit();
|
|
|
//else
|
|
|
foreach($obj as $catalog){
|
|
|
echo $catalog; //print catalog name
|
|
|
$name = $catalog->name(); //store catalog name in a variable
|
|
|
}
|
|
|
```
|
|
|
|
|
|
see class documentation: http://fdsn.gitpages.rm.ingv.it/webservices-library/classes/Fdsn-Webservices-Catalogs.html |
|
|
\ No newline at end of file |