Services_OpenStreetMap
[ class tree: Services_OpenStreetMap ] [ index: Services_OpenStreetMap ] [ all elements ]

Class: Services_OpenStreetMap_Criterion

Source Location: /Services_OpenStreetMap-1.0.0RC2/Services/OpenStreetMap/Criterion.php

Class Overview


Services_OpenStreetMap_Criterion


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 25]
Services_OpenStreetMap_Criterion


[ Top ]


Class Variables

$type =  null

[line 32]

Criterion type.
  • Access: protected

Type:   mixed


[ Top ]

$value =  null

[line 38]

Depending on type, value is null, a specified or generated value.
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 75]

Services_OpenStreetMap_Criterion __construct( )

A Criterion is used to specify a condition on how to search through changesets.

Search changesets by A user id: Services_OpenStreetMap_Criterion('user', 12345)

A display/user name: Services_OpenStreetMap_Criterion('display_name', 'fredflintstone')

A bounding box: Services_OpenStreetMap_Criterion( 'bbox', -8.0590275, 52.9347449, -7.9966939, 52.9611999 )

For open changesets only: Services_OpenStreetMap_Criterion('open')

For closed changesets only: Services_OpenStreetMap_Criterion('closed')

For changesets created after a specific time: Services_OpenStreetMap_Criterion('time', '17/11/2011')

For changesets created during a specific timespan: Services_OpenStreetMap_Criterion('time', '17/11/2011', '29/11/2011')

  • Throws: Services_OpenStreetMap_InvalidArgumentException
  • Access: public

[ Top ]

query   [line 152]

string query( )

Create the required query string portion.
  • Access: public

[ Top ]

type   [line 173]

string type( )

Return the criterion type (closed, open, bbox, display_name, or user).
  • Access: public

[ Top ]


Documentation generated on Tue, 28 May 2019 19:19:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.