Documentation

geo

For classes that have geographic attributes, or potential geographic attributes

Table of Contents

Methods

asGeoIFace()  : object|null
Returns a standardized stdObject, or null if not viable.
hasGeo()  : bool
Indicates whether a map of a *single* item can be displayed.

Methods

asGeoIFace()

Returns a standardized stdObject, or null if not viable.

public asGeoIFace([string $type = "unknown" ]) : object|null

Return object properties are lat, lng, human, and type.

Parameters
$type : string = "unknown"

'loc' for navigator location, or 'ip' for ip address location

Return values
object|null

hasGeo()

Indicates whether a map of a *single* item can be displayed.

public hasGeo() : bool
Return values
bool

        
On this page

Search results