Class Station

Description

The Station class to easily read data from a station connected to Meteohub using an XML file.

  • author: Alejandro Albarca Martinez
  • version: $Id: Station.php 2011-10-17 17:00
  • copyright: Copyright (c) 2011 NETFLIE. <http://meteolive.netflie.es>
  • name: Station
  • license: GNU GPLv3

Located in /Station.php (line 31)


	
			
Method Summary
Station __construct (string $xmlDoc, [array $sensors = null], [array $units = null])
void setXPath (string $xmlDoc)
array __get (string $name)
Methods
Constructor __construct (line 64)

Creates a new Station object

Station __construct (string $xmlDoc, [array $sensors = null], [array $units = null])
  • string $xmlDoc: The XML document URI
  • array $sensors: Array of sensor values
  • array $units: Array of unit values
setXPath (line 162)

Create a new DOMDocument && DOMXPath instances.

  • access: public
void setXPath (string $xmlDoc)
  • string $xmlDoc: URI of the XML document that contains station data-values.
__get (line 81)

Get Meteohub XML-Data items or Station attributes

  • return: Tag-name value or station attribute value
  • access: public
  • example: example
array __get (string $name)
  • string $name: Tag-name or station attribute

Documentation generated on Mon, 17 Oct 2011 16:46:21 +0200 by phpDocumentor 1.4.3