topical media & game development
mobile-wikitude-POI.php / php
<?php
Class to represents a Wikitude-ARML-Placemark
author: Thomas Krammer - www.powerhour.at
version: 1.1
class PowerHour_Wikitude_POI implements PowerHour_Wikitude_IPOI
{
protected provider = "";
protected description = "";
protected phone = "";
protected email = "";
protected attachments = array();
protected latitude = 0.0;
protected provider, this->provider = this->name = this->id;
}
parameter: mixed
public function setId(id)
{
id;
}
returns: the
public function getProvider() {
return this->provider;
}
parameter:
public function setProvider(provider) {
provider;
}
returns: the
public function getName() {
return this->name;
}
returns: the
public function getDescription() {
return this->description;
}
returns: the
public function getThumbnail() {
return this->thumbnail;
}
returns: the
public function getPhone() {
return this->phone;
}
returns: the
public function getUrl() {
return this->url;
}
returns: the
public function getEmail() {
return this->email;
}
returns: the
public function getAddress() {
return this->address;
}
returns: the
public function getAttachments() {
return this->attachments;
}
returns: the
public function getLongitude() {
return this->longitude;
}
returns: the
public function getLatitude() {
return this->latitude;
}
returns: the
public function getAltitude() {
return this->altitude;
}
parameter:
public function setName(name) {
name;
}
parameter:
public function setDescription(description) {
description;
}
parameter:
public function setThumbnail(thumbnail) {
thumbnail;
}
parameter:
public function setPhone(phone) {
phone;
}
parameter:
public function setUrl(url) {
url;
}
parameter:
public function setEmail(email) {
email;
}
parameter:
public function setAddress(address) {
address;
}
parameter: PowerHour_Wikitude_Attachment
public function addAttachment(PowerHour_Wikitude_Attachment attachment) {
attachment;
}
parameter: longitude to set
public function setLongitude(this->longitude =
parameter: latitude the
public function setLatitude(latitude) {
latitude;
}
parameter: altitude to set
public function setAltitude(this->altitude =
returns: string The coordinates are entered in the format longitude, latitude, altitude. Altitude is optional. Altitude must be given in meters.
public function getCoordinates()
{
return this->longitude.",".this->altitude;
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.