Client

# Class: HttpRequestHandler Source Location: /client/HttpRequestHandler.php
### Class Overview
Does common actions on HTTP request | ### Variables $log | ### Methods __construct checkClickedButtons checkKeymapButton checkMainmapButton getButtonPixelPoint handleHttpRequest handleTool handleTools isButtonPushed
### Class Details [line 294] Does common actions on HTTP request [ Top ] ### Class Variables #### $log = [line 299] #### Tags:
access: | private
Type: | Logger
[ Top ] ### Class Methods ### constructor __construct [line 305]
`HttpRequestHandler __construct( Cartoclient $cartoclient)`
Constructor #### Tags:
access: | public
#### Parameters:
Cartoclient | $cartoclient |
[ Top ] ### method checkClickedButtons [line 393]
`void checkClickedButtons( CartoForm $cartoForm)`
Checks if one map was clicked #### Tags:
access: | private
#### Parameters:
CartoForm | $cartoForm |
[ Top ] ### method checkKeymapButton [line 369]
`boolean checkKeymapButton( CartoForm $cartoForm)`
Returns true if key map was clicked and stores the point selected on key map into $cartoForm. #### Tags:
access: | private
#### Parameters:
CartoForm | $cartoForm |
[ Top ] ### method checkMainmapButton [line 340]
`boolean checkMainmapButton( CartoForm $cartoForm)`
Returns true if main map was clicked Stores the shape selected on main map. #### Tags:
access: | private
#### Parameters:
CartoForm | $cartoForm |
[ Top ] ### method getButtonPixelPoint [line 326]
`Point getButtonPixelPoint( string $buttonName)`
Returns point where button was clicked #### Tags:
return: | position of click
static: |
#### Parameters:
string | $buttonName | button name
[ Top ] ### method handleHttpRequest [line 475]
`CartoForm handleHttpRequest( ClientSession $clientSession, CartoForm $cartoForm)`
Handles buttons and tools. #### Tags:
return: | modified status
access: | public
#### Parameters:
ClientSession | $clientSession | session
CartoForm | $cartoForm | current status
[ Top ] ### method handleTool [line 410]
`mixed handleTool( ClientPlugin $plugin, ToolDescription $tool)`
Handles HTTP request for one tool of one plugin #### Tags:
return: | request
access: | private
#### Parameters:
ClientPlugin | $plugin | plugin
ToolDescription | $tool | tool
[ Top ] ### method handleTools [line 435]
`mixed handleTools( ClientPlugin $plugin)`
Handles HTTP request for selected plugin tool Assumes that $plugin is an instance of ToolProvider. #### Tags:
return: | request
access: | public
#### Parameters:
ClientPlugin | $plugin | plugin
[ Top ] ### method isButtonPushed [line 315]
`boolean isButtonPushed( string $name)`
Returns true if button was clicked #### Tags:
static: |
#### Parameters:
string | $name | button name
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:30:49 +0200 by phpDocumentor 1.3.0RC3