PHP Class Geo_MapLocation

Inheritance: extends DatabaseObject, implements IGeoMapLocation
显示文件 Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames array
$m_dbTableName string
$m_keyColumnNames array

Public Methods

Method Description
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 )

Private Methods

Method Description
getLocation ( ) : IGeoLocation Get location

Method Details

CleanFound() public static method

public static CleanFound ( )

GetByMap() public static method

Get locations by map
public static GetByMap ( IGeoMap $map ) : array
$map IGeoMap
return array of IGeoMapLocation

GetGeoSearchPointInPolygon() public static method

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
return mixed

GetGeoSearchSQLCons() public static method

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
return mixed

GetList() public static method

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.
return array of IGeoMapLocation

GetListExt() public static method

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
return array

__construct() public method

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

getContent() public method

Get content
public getContent ( integer $language ) : IGeoMapLocationContent
$language integer
return IGeoMapLocationContent

getId() public method

Get id
public getId ( ) : integer
return integer

getLanguage() public method

Get content
public getLanguage ( integer $language ) : IGeoMapLocationLanguage
$language integer
return IGeoMapLocationLanguage

getLatitude() public method

Get latitude
public getLatitude ( ) : float
return float

getLongitude() public method

Get longitude
public getLongitude ( ) : float
return float

getMultimedia() public method

Get multimedia
public getMultimedia ( ) : array
return array of IGeoMultimedia

isEnabled() public method

Point is displayable?
public isEnabled ( $language ) : boolean
return boolean

setContent() public method

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

setLanguage() public method

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

Property Details

$m_columnNames public_oe property

public array $m_columnNames
return array

$m_dbTableName public_oe property

public string $m_dbTableName
return string

$m_keyColumnNames public_oe property

public array $m_keyColumnNames
return array