PHP Class Geo_Location

Inheritance: extends DatabaseObject, implements IGeoLocation
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Свойство Type Description
$m_columnNames array
$m_dbTableName string
$m_keyColumnNames array
$m_keyIsAutoIncrement boolean

Méthodes publiques

Méthode Description
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

Method Details

FindLocation() public static méthode

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
Résultat integer

UpdateContents() public static méthode

Updates the point text content, the COW way
public static UpdateContents ( integer $p_mapId, array $p_contents ) : boolean
$p_mapId integer
$p_contents array
Résultat boolean

UpdateIcon() public static méthode

Updates the point marker icon file name
public static UpdateIcon ( array $poi ) : void
$poi array
Résultat void

UpdateLocations() public static méthode

Updates the location, the COW way
public static UpdateLocations ( integer $p_mapId, array $p_locations ) : boolean
$p_mapId integer
$p_locations array
Résultat boolean

UpdateOrder() public static méthode

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
Résultat boolean

__construct() public méthode

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

fetch() public méthode

Fetch a single record from the database for the given key.
public fetch ( $arg = null, $p_forceExists = false ) : boolean
Résultat boolean TRUE on success, FALSE on failure

getId() public méthode

public getId ( ) : integer
Résultat integer

getLastModified() public méthode

public getLastModified ( ) : timestamp
Résultat timestamp

getLatitude() public méthode

Get latitude
public getLatitude ( ) : float
Résultat float

getLongitude() public méthode

Get longitude
public getLongitude ( ) : float
Résultat float

getPOICenter() public méthode

public getPOICenter ( )

getPOILocation() public méthode

public getPOILocation ( )

getPOIRadius() public méthode

public getPOIRadius ( ) : double
Résultat double

getPOIType() public méthode

public getPOIType ( ) : string
Résultat string

getPOITypeStyle() public méthode

public getPOITypeStyle ( )

getUserId() public méthode

public getUserId ( ) : integer
Résultat integer

Property Details

$m_columnNames public_oe property

public array $m_columnNames
Résultat array

$m_dbTableName public_oe property

public string $m_dbTableName
Résultat string

$m_keyColumnNames public_oe property

public array $m_keyColumnNames
Résultat array

$m_keyIsAutoIncrement public_oe property

public bool $m_keyIsAutoIncrement
Résultat boolean