PHP Класс Geo_Location

Наследование: extends DatabaseObject, implements IGeoLocation
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$m_columnNames array
$m_dbTableName string
$m_keyColumnNames array
$m_keyIsAutoIncrement boolean

Открытые методы

Метод Описание
FindLocation ( array $p_location, string $p_type, integer $p_style, array $p_center, integer $p_radius ) : integer Looks whether the location is llready at the database NOTE: the 'location' ('center') parameters should be array with points (a point) with lat/lon values
UpdateContents ( integer $p_mapId, array $p_contents ) : boolean Updates the point text content, the COW way
UpdateIcon ( array $poi ) : void Updates the point marker icon file name
UpdateLocations ( integer $p_mapId, array $p_locations ) : boolean Updates the location, the COW way
UpdateOrder ( integer $p_mapId, array $p_reorder, array $p_indices ) : boolean Updates the point ordering at the map NB: p_indices are used for the newly inserted points from the ajax request
__construct ( mixed $arg = NULL, $p_forceExists = false )
fetch ( $arg = null, $p_forceExists = false ) : boolean Fetch a single record from the database for the given key.
getId ( ) : integer
getLastModified ( ) : timestamp
getLatitude ( ) : float Get latitude
getLongitude ( ) : float Get longitude
getPOICenter ( )
getPOILocation ( )
getPOIRadius ( ) : double
getPOIType ( ) : string
getPOITypeStyle ( )
getUserId ( ) : integer

Описание методов

FindLocation() публичный статический Метод

Looks whether the location is llready at the database NOTE: the 'location' ('center') parameters should be array with points (a point) with lat/lon values
public static FindLocation ( array $p_location, string $p_type, integer $p_style, array $p_center, integer $p_radius ) : integer
$p_location array
$p_type string
$p_style integer
$p_center array
$p_radius integer
Результат integer

UpdateContents() публичный статический Метод

Updates the point text content, the COW way
public static UpdateContents ( integer $p_mapId, array $p_contents ) : boolean
$p_mapId integer
$p_contents array
Результат boolean

UpdateIcon() публичный статический Метод

Updates the point marker icon file name
public static UpdateIcon ( array $poi ) : void
$poi array
Результат void

UpdateLocations() публичный статический Метод

Updates the location, the COW way
public static UpdateLocations ( integer $p_mapId, array $p_locations ) : boolean
$p_mapId integer
$p_locations array
Результат boolean

UpdateOrder() публичный статический Метод

Updates the point ordering at the map NB: p_indices are used for the newly inserted points from the ajax request
public static UpdateOrder ( integer $p_mapId, array $p_reorder, array $p_indices ) : boolean
$p_mapId integer
$p_reorder array
$p_indices array
Результат boolean

__construct() публичный Метод

public __construct ( mixed $arg = NULL, $p_forceExists = false )
$arg mixed

fetch() публичный Метод

Fetch a single record from the database for the given key.
public fetch ( $arg = null, $p_forceExists = false ) : boolean
Результат boolean TRUE on success, FALSE on failure

getId() публичный Метод

public getId ( ) : integer
Результат integer

getLastModified() публичный Метод

public getLastModified ( ) : timestamp
Результат timestamp

getLatitude() публичный Метод

Get latitude
public getLatitude ( ) : float
Результат float

getLongitude() публичный Метод

Get longitude
public getLongitude ( ) : float
Результат float

getPOICenter() публичный Метод

public getPOICenter ( )

getPOILocation() публичный Метод

public getPOILocation ( )

getPOIRadius() публичный Метод

public getPOIRadius ( ) : double
Результат double

getPOIType() публичный Метод

public getPOIType ( ) : string
Результат string

getPOITypeStyle() публичный Метод

public getPOITypeStyle ( )

getUserId() публичный Метод

public getUserId ( ) : integer
Результат integer

Описание свойств

$m_columnNames публичное свойство

public array $m_columnNames
Результат array

$m_dbTableName публичное свойство

public string $m_dbTableName
Результат string

$m_keyColumnNames публичное свойство

public array $m_keyColumnNames
Результат array

$m_keyIsAutoIncrement публичное свойство

public bool $m_keyIsAutoIncrement
Результат boolean