groupName = $groupName; $this->selHeaders = array(); $this->layerList = array(); } function setDescription($description) { $this->description = $description; } function addLayer($layer) { array_push($this->layerList, $layer); } function setResHeaders($selHeaders) { $this->selHeaders = $selHeaders; } function printGroupName() { echo $this->groupName; } //*** RETURN FUNCTIONS ***// function getGroupName() { return $this->groupName; } function getDescription() { return $this->description; } function getLayers() { return $this->layerList; } function getResHeaders() { return $this->selHeaders; } } /* * CLASS FOR GROUP LAYERS *******************************************************************/ class GLAYER { function GLAYER($glayerName) { $this->glayerName = $glayerName; $this->selFields = array(); $this->hyperFields = array(); } function setLayerIdx($glayerIdx) { $this->glayerIdx = $glayerIdx; } function setLayerType($glayerType) { $this->glayerType = $glayerType; } function setResFields($selFields) { $this->selFields = $selFields; } function setHyperFields($hyperFields) { $this->hyperFields = $hyperFields; } function setTableJoin($joinList) { $this->joinList = $joinList; } function setClasses($classes) { $this->classes = $classes; } function setLabelItem($labelItem) { $this->labelItem = $labelItem; } function setXYLayerAttribute() { $this->isXYLayer = 1; } function setXYLayerProperties($XYLayerProperties) { $this->XYLayerProperties = $XYLayerProperties; } function setSkipLegend($skipLegend) { $this->skipLegend = $skipLegend; } function setTransparency($transparency) { $this->glayerTransparency = $transparency; } function setLayerEncoding($encoding) { $this->layerEncoding = $encoding; } //*** GLOBAL RETURN FUNCTIONS ***// function getLayerName() { return $this->glayerName; } function getLayerIdx() { return $this->glayerIdx; } function getLayerType() { return $this->glayerType; } function getResFields() { return $this->selFields; } function getHyperFields() { return $this->hyperFields; } function getTableJoin() { return $this->joinList; } function getClasses() { return $this->classes; } function getLabelItem() { return $this->labelItem; } function checkForXYLayer() { return $this->isXYLayer; } function getXYLayerProperties() { return $this->XYLayerProperties; } function getSkipLegend() { return $this->skipLegend; } function getTransparency() { return $this->glayerTransparency; } function getLayerEncoding() { return $this->layerEncoding; } } function getGLayerByName($gLayerName) { $grouplist = $_SESSION["grouplist"]; foreach ($grouplist as $grp) { $glayerList = $grp->getLayers(); foreach ($glayerList as $glayer) { if ($glayer->getLayerName() == $gLayerName) { return $glayer; } } } } ?>