LandmarkTool Class Reference

List of all members.

Public Member Functions

 LandmarkTool ($strUser, $intGeoX, $intGeoY)
 setSelected ($intID)
 setAction ($strAction)
 toHtml ()

Public Attributes

 $boolLandmarkEditor = FALSE
 $intSelectedID = NULL
 $intX = NULL
 $intY = NULL
 $strAction = ""

Detailed Description

The landmark tool.


Constructor & Destructor Documentation

LandmarkTool::LandmarkTool strUser,
intGeoX,
intGeoY
 

Return the LandmarkTool object.

Parameters:
$strUser The user name. Used to determine whether the user is can edit landmarks or not.
$intGeoX The X coordinate of the mouse click (geographic).
$intGeoY The Y coordinate of the mouse click (geographic).
Returns:
The LandmarkTool object.


Member Function Documentation

LandmarkTool::setAction strAction  ) 
 

Set the action of the tool

Parameters:
$strAction is a string describing the current action.
Returns:
Nothing.

LandmarkTool::setSelected intID  ) 
 

Select a landmark for editing.

Parameters:
$intID is the Landmark ID.
Returns:
Nothing.

LandmarkTool::toHtml  ) 
 

Return the HTML code of the landmark tool.

Returns:
A string containing the generated HTML code.
Todo:
Re-add tooltips, keep image size settings when moving landmark


Member Data Documentation

LandmarkTool::$boolLandmarkEditor = FALSE
 

Whether the current user is administrator or not.

LandmarkTool::$intSelectedID = NULL
 

The ID of a selected Landmark.

LandmarkTool::$intX = NULL
 

The X coordinate of the mouse click.

LandmarkTool::$intY = NULL
 

The Y coordinate of the mouse click.

LandmarkTool::$strAction = ""
 

The action that is currently performed.


The documentation for this class was generated from the following file:
Generated on Sat Jul 1 21:19:42 2006 for DCMMS by  doxygen 1.4.6-NO