Cheetah
Public Member Functions | Public Attributes | List of all members
ChWmapModule Class Reference
Inheritance diagram for ChWmapModule:
ChWsbModule

Public Member Functions

 __construct (&$aModule)
 
 actionHome ()
 
 actionEdit ($iEntryId, $sPart)
 
 actionSaveData ( $iEntryId, $sPart, $iZoom, $sMapType, $fLat, $fLng, $sMapClassInstanceName, $sAddress, $sCountry)
 
 actionSaveLocationPartHome ($sPart, $iZoom, $sMapType, $fLat, $fLng)
 
 actionSaveLocationHomepage ($iZoom, $sMapType, $fLat, $fLng)
 
 actionSaveLocationSeparatePage ($iZoom, $sMapType, $fLat, $fLng)
 
 actionGetDataLocation ($iId, $sPart, $sMapClassInstanceName)
 
 actionGetData ( $iZoom, $fLatMin, $fLatMax, $fLngMin, $fLngMax, $sMapClassInstanceName, $sCustomParts='', $sCustom='')
 
 _getLocationsData ($fLatMin, $fLatMax, $fLngMin, $fLngMax, $sCustomParts='', $sCustom='')
 
 actionUpdateLocations ($iLimit=4, $iDelay=6)
 
 actionAdministrationParts ($sPart)
 
 actionAdministration ()
 
 serviceGetLocation ($sPart, $iEntryId, $iViewer=false)
 
 serviceUpdateLocationManually ( $sPart, $iEntryId, $fLat, $fLng, $iZoom, $sMapType, $sCountry='', $sState='', $sCity='', $sAddress='')
 
 serviceEditLocation ($sPart, $iEntryId)
 
 serviceHomepageBlock ()
 
 serviceHomepagePartBlock ($sPart)
 
 serviceSeparatePageBlock ( $fLat=false, $fLng=false, $iZoom=false, $sPartsCustom='', $sCustom='', $sSubclass='ch_wmap_separate', $sParamPrefix='ch_wmap_separate', $sSuffix='Page', $sSaveLocationSuffix='separate_page', $isPartsSelector=true)
 
 serviceLocationBlock ($sPart, $iEntryId)
 
 serviceResponseEntryDelete ($sPart, $iEntryId)
 
 serviceResponseEntryAdd ($sPart, $iEntryId)
 
 serviceResponseEntryChange ($sPart, $iEntryId)
 
 servicePartEnable ($sPart, $isEnable, $isClearPartLocations=false)
 
 servicePartUpdate ($sPart, $a)
 
 servicePartInstall ($sPart, $a)
 
 servicePartUninstall ($sPart)
 
 onEventGeolocateProfile ($iProfileId, $aLocation)
 
 onEventLocationManuallyUpdated ($sPart, $iEntryId, $aLocation)
 
 isAllowedEditOwnLocation (&$aLocation)
 
 isAdmin ()
 
 _geocode ($sAddress, $sCountryCode='')
 
 _updateLocation ($iDelay, &$r)
 
 _saveLocationByPrefix ($sPrefix, $iZoom, $sMapType, $fLat, $fLng)
 
 _saveLocationForm ($sSuffix, $sMap)
 
 _saveData ( $iEntryId, $sPart, $iZoom, $sMapType, $fLat, $fLng, $sMapClassInstanceName='', $sAddress='null', $sCountry='null')
 
 _validateParts ($sParts)
 
 _getIconArray ($sBaseFilename='', $isCountryFlag=false)
 
- Public Member Functions inherited from ChWsbModule
 __construct ($aModule)
 
 isLogged ()
 
 getUserId ()
 
 getUserPassword ()
 
 getTitleKey ($sUri)
 
 serviceGetBaseUrl ()
 

Public Attributes

 $_iProfileId
 
 $_aParts
 
 $_sProto = 'http'
 
 $aIconsSizes
 
- Public Attributes inherited from ChWsbModule
 $_aModule
 
 $_oDb
 
 $_oTemplate
 
 $_oConfig
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbModule
static getInstance ($sClassName)
 
static getTitle ($sUri)
 

Detailed Description

Definition at line 15 of file ChWmapModule.php.

Constructor & Destructor Documentation

◆ __construct()

ChWmapModule::__construct ( $aModule)

Definition at line 25 of file ChWmapModule.php.

Member Function Documentation

◆ _geocode()

ChWmapModule::_geocode (   $sAddress,
  $sCountryCode = '' 
)

Definition at line 930 of file ChWmapModule.php.

◆ _getIconArray()

ChWmapModule::_getIconArray (   $sBaseFilename = '',
  $isCountryFlag = false 
)

Definition at line 1199 of file ChWmapModule.php.

◆ _getLocationsData()

ChWmapModule::_getLocationsData (   $fLatMin,
  $fLatMax,
  $fLngMin,
  $fLngMax,
  $sCustomParts = '',
  $sCustom = '' 
)

Definition at line 183 of file ChWmapModule.php.

◆ _saveData()

ChWmapModule::_saveData (   $iEntryId,
  $sPart,
  $iZoom,
  $sMapType,
  $fLat,
  $fLng,
  $sMapClassInstanceName = '',
  $sAddress = 'null',
  $sCountry = 'null' 
)
Returns
404 - not found, 403 - access denied, false - error occured, 1 - succesfully saved

Definition at line 1113 of file ChWmapModule.php.

◆ _saveLocationByPrefix()

ChWmapModule::_saveLocationByPrefix (   $sPrefix,
  $iZoom,
  $sMapType,
  $fLat,
  $fLng 
)

Definition at line 1040 of file ChWmapModule.php.

◆ _saveLocationForm()

ChWmapModule::_saveLocationForm (   $sSuffix,
  $sMap 
)

Definition at line 1070 of file ChWmapModule.php.

◆ _updateLocation()

ChWmapModule::_updateLocation (   $iDelay,
$r 
)

Definition at line 970 of file ChWmapModule.php.

◆ _validateParts()

ChWmapModule::_validateParts (   $sParts)

Definition at line 1181 of file ChWmapModule.php.

◆ actionAdministration()

ChWmapModule::actionAdministration ( )

Definition at line 348 of file ChWmapModule.php.

◆ actionAdministrationParts()

ChWmapModule::actionAdministrationParts (   $sPart)

Definition at line 275 of file ChWmapModule.php.

◆ actionEdit()

ChWmapModule::actionEdit (   $iEntryId,
  $sPart 
)

Definition at line 48 of file ChWmapModule.php.

◆ actionGetData()

ChWmapModule::actionGetData (   $iZoom,
  $fLatMin,
  $fLatMax,
  $fLngMin,
  $fLngMax,
  $sMapClassInstanceName,
  $sCustomParts = '',
  $sCustom = '' 
)

Definition at line 164 of file ChWmapModule.php.

◆ actionGetDataLocation()

ChWmapModule::actionGetDataLocation (   $iId,
  $sPart,
  $sMapClassInstanceName 
)

Definition at line 124 of file ChWmapModule.php.

◆ actionHome()

ChWmapModule::actionHome ( )

Definition at line 34 of file ChWmapModule.php.

◆ actionSaveData()

ChWmapModule::actionSaveData (   $iEntryId,
  $sPart,
  $iZoom,
  $sMapType,
  $fLat,
  $fLng,
  $sMapClassInstanceName,
  $sAddress,
  $sCountry 
)

Definition at line 82 of file ChWmapModule.php.

◆ actionSaveLocationHomepage()

ChWmapModule::actionSaveLocationHomepage (   $iZoom,
  $sMapType,
  $fLat,
  $fLng 
)

Definition at line 114 of file ChWmapModule.php.

◆ actionSaveLocationPartHome()

ChWmapModule::actionSaveLocationPartHome (   $sPart,
  $iZoom,
  $sMapType,
  $fLat,
  $fLng 
)

Definition at line 109 of file ChWmapModule.php.

◆ actionSaveLocationSeparatePage()

ChWmapModule::actionSaveLocationSeparatePage (   $iZoom,
  $sMapType,
  $fLat,
  $fLng 
)

Definition at line 119 of file ChWmapModule.php.

◆ actionUpdateLocations()

ChWmapModule::actionUpdateLocations (   $iLimit = 4,
  $iDelay = 6 
)

Definition at line 248 of file ChWmapModule.php.

◆ isAdmin()

ChWmapModule::isAdmin ( )

Definition at line 923 of file ChWmapModule.php.

◆ isAllowedEditOwnLocation()

ChWmapModule::isAllowedEditOwnLocation ( $aLocation)

Definition at line 908 of file ChWmapModule.php.

◆ onEventGeolocateProfile()

ChWmapModule::onEventGeolocateProfile (   $iProfileId,
  $aLocation 
)

Definition at line 890 of file ChWmapModule.php.

◆ onEventLocationManuallyUpdated()

ChWmapModule::onEventLocationManuallyUpdated (   $sPart,
  $iEntryId,
  $aLocation 
)

Definition at line 898 of file ChWmapModule.php.

◆ serviceEditLocation()

ChWmapModule::serviceEditLocation (   $sPart,
  $iEntryId 
)

Edit location block

Parameters
$sPartmodule/part name
$iEntryIdentry's id which location is edited
Returns
html with clickable map

Definition at line 522 of file ChWmapModule.php.

◆ serviceGetLocation()

ChWmapModule::serviceGetLocation (   $sPart,
  $iEntryId,
  $iViewer = false 
)

Get location array

Parameters
$sPartmodule/part name
$iEntryIdentry's id which location is edited
$iViewerviewer profile id
Returns
false - location undefined, -1 - access denied, array - all good

Definition at line 443 of file ChWmapModule.php.

◆ serviceHomepageBlock()

ChWmapModule::serviceHomepageBlock ( )

Homepage block with world map

Returns
html with world map

Definition at line 605 of file ChWmapModule.php.

◆ serviceHomepagePartBlock()

ChWmapModule::serviceHomepagePartBlock (   $sPart)

Module Homepage block with world map

Returns
html with world map

Definition at line 620 of file ChWmapModule.php.

◆ serviceLocationBlock()

ChWmapModule::serviceLocationBlock (   $sPart,
  $iEntryId 
)

Block with entry's location map

Parameters
$sPartmodule/part name
$iEntryIdentry's id which location is shown on the map
Returns
html with entry's location map

Definition at line 717 of file ChWmapModule.php.

◆ servicePartEnable()

ChWmapModule::servicePartEnable (   $sPart,
  $isEnable,
  $isClearPartLocations = false 
)

Definition at line 825 of file ChWmapModule.php.

◆ servicePartInstall()

ChWmapModule::servicePartInstall (   $sPart,
  $a 
)

Definition at line 846 of file ChWmapModule.php.

◆ servicePartUninstall()

ChWmapModule::servicePartUninstall (   $sPart)

Definition at line 881 of file ChWmapModule.php.

◆ servicePartUpdate()

ChWmapModule::servicePartUpdate (   $sPart,
  $a 
)

Definition at line 838 of file ChWmapModule.php.

◆ serviceResponseEntryAdd()

ChWmapModule::serviceResponseEntryAdd (   $sPart,
  $iEntryId 
)

Definition at line 794 of file ChWmapModule.php.

◆ serviceResponseEntryChange()

ChWmapModule::serviceResponseEntryChange (   $sPart,
  $iEntryId 
)

Definition at line 799 of file ChWmapModule.php.

◆ serviceResponseEntryDelete()

ChWmapModule::serviceResponseEntryDelete (   $sPart,
  $iEntryId 
)

Definition at line 783 of file ChWmapModule.php.

◆ serviceSeparatePageBlock()

ChWmapModule::serviceSeparatePageBlock (   $fLat = false,
  $fLng = false,
  $iZoom = false,
  $sPartsCustom = '',
  $sCustom = '',
  $sSubclass = 'ch_wmap_separate',
  $sParamPrefix = 'ch_wmap_separate',
  $sSuffix = 'Page',
  $sSaveLocationSuffix = 'separate_page',
  $isPartsSelector = true 
)

Separate page block with world map

Returns
html with world map

Definition at line 638 of file ChWmapModule.php.

◆ serviceUpdateLocationManually()

ChWmapModule::serviceUpdateLocationManually (   $sPart,
  $iEntryId,
  $fLat,
  $fLng,
  $iZoom,
  $sMapType,
  $sCountry = '',
  $sState = '',
  $sCity = '',
  $sAddress = '' 
)

Update location

Parameters
$sPartmodule/part name
$iEntryIdentry's id which location is edited
$fLatlatitude
$fLnglongitude
$iZoomzoom level
$sMapTypemap type: normal, satellite, hybrid, terrain
$sCountry
$sState
$sCity
$sAddress
Returns
false - location undefined, -1 - access denied, array - all good

Definition at line 493 of file ChWmapModule.php.

Member Data Documentation

◆ $_aParts

ChWmapModule::$_aParts

Definition at line 18 of file ChWmapModule.php.

◆ $_iProfileId

ChWmapModule::$_iProfileId

Definition at line 17 of file ChWmapModule.php.

◆ $_sProto

ChWmapModule::$_sProto = 'http'

Definition at line 19 of file ChWmapModule.php.

◆ $aIconsSizes

ChWmapModule::$aIconsSizes
Initial value:
= array(
'group.png' => array('w' => 24, 'h' => 24, 'url' => ''),
'default' => array('w' => 24, 'h' => 24, 'url' => ''),
)

Definition at line 20 of file ChWmapModule.php.


The documentation for this class was generated from the following file: