[fusion-commits] r1697 - trunk/layers/MapGuide/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Nov 28 15:12:48 EST 2008
Author: pdeschamps
Date: 2008-11-28 15:12:48 -0500 (Fri, 28 Nov 2008)
New Revision: 1697
Modified:
trunk/layers/MapGuide/php/LoadMap.php
Log:
removed calls to "BooleanToString" as it makes it necessary to add
additional logic to return to boolean in the client js.
Modified: trunk/layers/MapGuide/php/LoadMap.php
===================================================================
--- trunk/layers/MapGuide/php/LoadMap.php 2008-11-28 19:30:57 UTC (rev 1696)
+++ trunk/layers/MapGuide/php/LoadMap.php 2008-11-28 20:12:48 UTC (rev 1697)
@@ -128,15 +128,15 @@
$layerObj->resourceId = $layerDefinition->ToString();
$layerObj->parentGroup = $layer->GetGroup() ? $layer->GetGroup()->GetObjectId() : '';
- $layerObj->selectable = BooleanToString($layer->GetSelectable());
- $layerObj->visible = BooleanToString($layer->GetVisible());
- $layerObj->actuallyVisible = BooleanToString($layer->isVisible());
+ $layerObj->selectable = $layer->GetSelectable();
+ $layerObj->visible = $layer->GetVisible();
+ $layerObj->actuallyVisible = $layer->isVisible();
$layerObj->editable = IsLayerEditable($resourceService, $layer) ? 'true' : 'false';
$layerObj->legendLabel = addslashes($layer->GetLegendLabel());
- $layerObj->displayInLegend = BooleanToString($layer->GetDisplayInLegend());
- $layerObj->expandInLegend = BooleanToString($layer->GetExpandInLegend());
+ $layerObj->displayInLegend = $layer->GetDisplayInLegend();
+ $layerObj->expandInLegend = $layer->GetExpandInLegend();
$oScaleRanges = buildScaleRanges($layer);
$_SESSION['scale_ranges'][$layer->GetObjectId()] = $oScaleRanges;
@@ -354,12 +354,12 @@
$groupObj->groupName = addslashes($group->GetName());
$groupObj->legendLabel = addslashes($group->GetLegendLabel());
$groupObj->uniqueId = $group->GetObjectId();
- $groupObj->displayInLegend = BooleanToString($group->GetDisplayInLegend());
- $groupObj->expandInLegend = BooleanToString($group->GetExpandInLegend());
+ $groupObj->displayInLegend = $group->GetDisplayInLegend();
+ $groupObj->expandInLegend = $group->GetExpandInLegend();
$parent = $group->GetGroup();
$groupObj->parentUniqueId = $parent != null ? $parent->GetObjectId() : '';
- $groupObj->visible = BooleanToString($group->GetVisible());
- $groupObj->actuallyVisible = BooleanToString($group->isVisible());
+ $groupObj->visible = $group->GetVisible();
+ $groupObj->actuallyVisible = $group->isVisible();
return $groupObj;
}
More information about the fusion-commits
mailing list