[Mapbender-commits] r4752 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Sep 27 05:23:04 EDT 2009


Author: verenadiewald
Date: 2009-09-27 05:23:04 -0400 (Sun, 27 Sep 2009)
New Revision: 4752

Modified:
   trunk/mapbender/http/classes/class_group.php
Log:


Modified: trunk/mapbender/http/classes/class_group.php
===================================================================
--- trunk/mapbender/http/classes/class_group.php	2009-09-27 09:17:51 UTC (rev 4751)
+++ trunk/mapbender/http/classes/class_group.php	2009-09-27 09:23:04 UTC (rev 4752)
@@ -1,7 +1,7 @@
 <?php
 # $Id: class_kml_geometry.php 1966 2008-01-15 08:25:15Z christoph $
 # http://www.mapbender.org/index.php/class_wmc.php
-# Copyright (C) 2002 CCGIS 
+# Copyright (C) 2002 CCGIS
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -30,19 +30,19 @@
 	 */
 	var $id;
 	var $name;
-	var $owner = 0;  
+	var $owner = 0;
 	var $description ="";
 
     static $displayName = "Group";
     static $internalName = "group";
-	
+
 	/**
 	 * Constructor
-	 * @param groupId Integer 	the ID of the group that is represented by 
+	 * @param groupId Integer 	the ID of the group that is represented by
 	 * 							this object. If null, create an empty object
 	 */
 	public function __construct ($groupId) {
-		
+
        // throw new Exception("CONSTR  : ". $this->id);
         if($groupId == null){
           // new group
@@ -53,18 +53,18 @@
 			$this->load();
 		}
 		catch(Exception $E)
-		{	
+		{
 			new mb_exception($E->getMessage());
 		}
 
-	}	
+	}
 
-	
+
 	/**
 	 * @return String the ID of this group
 	 */
 	public function __toString () {
-		return (string) $this->id;	
+		return (string) $this->id;
 	}
 
 
@@ -82,13 +82,13 @@
 
 	public function  create() {
 		if($this->name == ""){ $e = new Exception("Can' t create group without name");}
-		
+
 		$sql_group_create = "INSERT INTO mb_group (mb_group_name) VALUES ('". $this->name ."');";
 		$v = array($this->name);
 		$t = array("s");
-	
+
 		db_begin();
-		
+
 		$insert_result = db_query($sql_group_create);
 		if($insert_result == false)
 		{
@@ -101,7 +101,7 @@
 		{
 			$this->id = $id;
 		}
-	
+
 		$commit_result = $this->commit();
 		if($commit_result == false)
 		{
@@ -165,7 +165,7 @@
 	}
 
 	public function remove() {
-		
+
         //throw new Exception("I AM   : ". $this->id);
         $sql_group_remove = "DELETE FROM mb_group WHERE mb_group_id = $1";
 		$v = array($this->id);
@@ -211,7 +211,7 @@
 
 
       $groups = Array();
-      $sql_grouplist = "SELECT mb_group_id FROM mb_group WHERE  mb_group_name LIKE $1;";
+      $sql_grouplist = "SELECT mb_group_id FROM mb_group WHERE mb_group_name LIKE $1;";
       $v = array($name);
       $t = array("s");
       $res_groups = db_prep_query($sql_grouplist,$v,$t);
@@ -228,7 +228,7 @@
         }
       }
       return $groups;
-      
+
     }
 
     /*
@@ -238,7 +238,7 @@
     */
 
     public static function byName($name) {
-    
+
       if($name == null) { return new Group(null); }
 
       $sql_group = "SELECT mb_group_id FROM mb_group WHERE mb_group_name = '$name'";



More information about the Mapbender_commits mailing list