PHP 클래스 Geo_Location

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

공개 프로퍼티들

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