PHP 클래스 Geo_MapLocation

상속: extends DatabaseObject, implements IGeoMapLocation
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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