PHP Класс Geo_MapLocation

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

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

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

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

Метод Описание
CleanFound ( )
GetByMap ( IGeoMap $map ) : array Get locations by map
GetGeoSearchPointInPolygon ( mixed $p_coordinates, string $p_tableAlias = 'l' ) : mixed Returns SQL query for limiting POIs on a given polygon by a previously defined stored function
GetGeoSearchSQLCons ( mixed $p_coordinates, string $p_polygonType = 'rectangle', string $p_tableAlias = 'l' ) : mixed Returns SQL query for limiting POIs on a given polygon
GetList ( array $p_parameters, array $p_order = [], integer $p_start, integer $p_limit, &$p_count, $p_skipCache = false ) : array Returns map locations list based on the given parameters.
GetListExt ( array $p_parameters, array $p_order = [], integer $p_start, integer $p_limit, integer &$p_count, boolean $p_skipCache = false, array &$p_rawData = null ) : array Returns map locations list based on the given parameters.
__construct ( mixed $arg = NULL, $p_forceExists = false )
getContent ( integer $language ) : IGeoMapLocationContent Get content
getId ( ) : integer Get id
getLanguage ( integer $language ) : IGeoMapLocationLanguage Get content
getLatitude ( ) : float Get latitude
getLongitude ( ) : float Get longitude
getMultimedia ( ) : array Get multimedia
isEnabled ( $language ) : boolean Point is displayable?
setContent ( $p_languageId, IGeoMapLocationContent $p_contentObj )
setLanguage ( $p_languageId, IGeoMapLocationLanguage $p_languageObj )

Приватные методы

Метод Описание
getLocation ( ) : IGeoLocation Get location

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

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

public static CleanFound ( )

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

Get locations by map
public static GetByMap ( IGeoMap $map ) : array
$map IGeoMap
Результат array of IGeoMapLocation

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

Returns SQL query for limiting POIs on a given polygon by a previously defined stored function
public static GetGeoSearchPointInPolygon ( mixed $p_coordinates, string $p_tableAlias = 'l' ) : mixed
$p_coordinates mixed An array of coordinate lon/lat pairs
$p_tableAlias string Table prefix for the SQL query
Результат mixed

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

Returns SQL query for limiting POIs on a given polygon
public static GetGeoSearchSQLCons ( mixed $p_coordinates, string $p_polygonType = 'rectangle', string $p_tableAlias = 'l' ) : mixed
$p_coordinates mixed An array of coordinate lon/lat pairs
$p_polygonType string Polygon type: rectangle (two corners), or polygons with clockwise or counterclockwise corners
$p_tableAlias string Table prefix for the SQL query
Результат mixed

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

Returns map locations list based on the given parameters.
public static GetList ( array $p_parameters, array $p_order = [], integer $p_start, integer $p_limit, &$p_count, $p_skipCache = false ) : array
$p_parameters array An array of ComparionOperation objects
$p_order array An array of columns and directions to order by
$p_start integer The record number to start the list
$p_limit integer The offset. How many records from $p_start will be retrieved.
Результат array of IGeoMapLocation

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

Returns map locations list based on the given parameters.
public static GetListExt ( array $p_parameters, array $p_order = [], integer $p_start, integer $p_limit, integer &$p_count, boolean $p_skipCache = false, array &$p_rawData = null ) : array
$p_parameters array An array of ComparionOperation objects
$p_order array An array of columns and directions to order by
$p_start integer The record number to start the list
$p_limit integer The offset, how many records from $p_start will be retrieved
$p_count integer Total count of POIs without p_start/p_limit limitations
$p_skipCache boolean Whether to skip caching
$p_rawData array The variable for returning read points as raw array, used for the JS processing
Результат array

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

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

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

Get content
public getContent ( integer $language ) : IGeoMapLocationContent
$language integer
Результат IGeoMapLocationContent

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

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

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

Get content
public getLanguage ( integer $language ) : IGeoMapLocationLanguage
$language integer
Результат IGeoMapLocationLanguage

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

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

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

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

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

Get multimedia
public getMultimedia ( ) : array
Результат array of IGeoMultimedia

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

Point is displayable?
public isEnabled ( $language ) : boolean
Результат boolean

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

public setContent ( $p_languageId, IGeoMapLocationContent $p_contentObj )
$p_contentObj IGeoMapLocationContent

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

public setLanguage ( $p_languageId, IGeoMapLocationLanguage $p_languageObj )
$p_languageObj IGeoMapLocationLanguage

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

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

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

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

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

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

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