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

Class: Services_Openstreetmap_Object

Source Location: /Openstreetmap/Object.php

Class Overview


Services_Openstreetmap_Object


Author(s):

Variables

Methods


Child classes:

Services_Openstreetmap_Changeset
Services_Openstreetmap_Changeset
Services_Openstreetmap_Node
Services_Openstreetmap_Node
Services_Openstreetmap_Relation
Services_Openstreetmap_Relation
Services_Openstreetmap_Way
Services_Openstreetmap_Way

Class Details

[line 25]
Services_Openstreetmap_Object



Tags:

author:  Ken Guest <kguest@php.net>
link:  Object.php
license:  BSD


[ Top ]


Class Variables

$action =  null

[line 53]



Tags:

access:  protected

Type:   mixed


[ Top ]

$changeset_id =  null

[line 55]



Tags:

access:  protected

Type:   mixed


[ Top ]

$config =  null

[line 40]



Tags:

access:  protected

Type:   mixed


[ Top ]

$dirty =  false

[line 51]



Tags:

access:  protected

Type:   mixed


[ Top ]

$id =  null

[line 36]



Tags:

access:  protected

Type:   mixed


[ Top ]

$obj =  null

[line 49]



Tags:

access:  protected

Type:   mixed


[ Top ]

$tags = array()

[line 34]

Array of tags in key/value format



Tags:

access:  protected

Type:   array


[ Top ]

$transport =  null

[line 38]



Tags:

access:  protected

Type:   mixed


[ Top ]

$type =  null

[line 47]

type of object



Tags:

access:  protected

Type:   string


[ Top ]

$xml =  null

[line 27]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


method delete [line 425]

void delete( )

Mark the object as deleted.

 $obj->delete();




Tags:

access:  public


[ Top ]

method getAttributes [line 290]

string getAttributes( )

Return the attributes set for this object in question.



Tags:

access:  public


[ Top ]

method getConfig [line 449]

Services_Openstreetmap_Config getConfig( )

Get current Config object



Tags:

access:  public


[ Top ]

method getId [line 217]

integer getId( )

Retrieve the id of the object in question.



Tags:

return:  id of the object
access:  public


Overridden in child classes as:

Services_Openstreetmap_Changeset::getId()
getId

[ Top ]

method getOsmChangeXML [line 136]

string getOsmChangeXML( )

Generate and return the OSM Change XML required to record the changes made to the object in question.



Tags:

access:  public


[ Top ]

method getRelations [line 370]

Services_Openstreetmap_Relations getRelations( )

Get all relations referring to the object in question.



Tags:

access:  public


[ Top ]

method getTag [line 318]

string getTag( string $key)

Return value of specified tag as set against this object.

If tag isn't set, return null.




Tags:

access:  public


Parameters:

string   $key   Key value, For example, 'amenity', 'highway' etc

[ Top ]

method getTags [line 304]

array getTags( )

Return the tags set for this object in question.



Tags:

return:  tags
access:  public


[ Top ]

method getTransport [line 472]

Services_Openstreetmap_Transport. getTransport( )

Retrieve the current Transport instance.



Tags:

access:  public


[ Top ]

method getType [line 332]

string getType( )

Return which type of object this is.



Tags:

return:  type
access:  public


Overridden in child classes as:

Services_Openstreetmap_Relation::getType()
type

[ Top ]

method getUid [line 251]

integer getUid( )

Retrieve the uid of the object in question.



Tags:

return:  uid of the object
access:  public


[ Top ]

method getUser [line 264]

string getUser( )

Retrieve the user (creator/editor) of the object in question.



Tags:

return:  user of the object
access:  public


[ Top ]

method getVersion [line 277]

string getVersion( )

Retrieve the version of the object in question



Tags:

return:  version of the object
access:  public


[ Top ]

method getXml [line 62]

string getXml( )

getXml



Tags:

access:  public


[ Top ]

method history [line 342]

Services_Openstreetmap_Objects history( )

Get each distinct version of an object.



Tags:

access:  public


[ Top ]

method osmChangeXML [line 207]

string osmChangeXML( string $xml)

Amend changeXML with specific updates as appropriate.



Tags:



Overridden in child classes as:

Services_Openstreetmap_Way::osmChangeXML()
Amend changeXML with specific updates pertinent to this Way object.

Parameters:

string   $xml   OSM Change XML as generated by getOsmChangeXML

[ Top ]

method setChangesetId [line 124]

Services_Openstreetmap_Object setChangesetId( integer $id)

Set the Changeset Id for this object.



Tags:

access:  public


Parameters:

integer   $id   Changeset Id (numeric)

[ Top ]

method setConfig [line 438]

Services_Openstreetmap_Changeset setConfig( Services_Openstreetmap_Config $config)

Set Config object



Tags:

access:  public


Parameters:

Services_Openstreetmap_Config   $config   Config object

[ Top ]

method setId [line 240]

Services_Openstreetmap_Object setId( integer $value)

Set the id value of the object in question.

 $obj->setId($id)->...




Tags:

access:  public


Parameters:

integer   $value   new id of the object

[ Top ]

method setTag [line 402]

void setTag( mixed $key, mixed $value)

setTag

 $obj->setTag('key', 'value')->setTag(...);




Tags:

access:  public


Parameters:

mixed   $key   key
mixed   $value   value

[ Top ]

method setTransport [line 461]

Services_Openstreetmap_Config setTransport( Services_Openstreetmap_Transport $transport)

Set the Transport instance.



Tags:

access:  public


Parameters:

Services_Openstreetmap_Transport   $transport   Transport instance.

[ Top ]

method setVal [line 111]

void setVal( string $value)

Store a specified value.



Tags:

access:  public


Parameters:

string   $value   Most likely an id value, returned from the server.

[ Top ]

method setXml [line 90]

void setXml( SimpleXMLElement $xml)

setXml



Tags:

access:  public


Overridden in child classes as:

Services_Openstreetmap_Relation::setXml()
setXml

Parameters:

SimpleXMLElement   $xml   OSM XML

[ Top ]

method __toString [line 73]

string __toString( )

If modified, return the changeXML for the object, otherwise the defining XML.



Tags:

access:  public


[ Top ]


Documentation generated on Wed, 11 Jan 2012 00:37:07 +0000 by phpDocumentor 1.4.4