Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 3 | Revision 5 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 3 Revision 4
Zeile 1... Zeile 1...
1
<?
1
<?
2
	class Team
2
	class Team
3
	{
3
	{
4
		var $t_id;
4
		var $t_id;
5
		var $t_name;
5
		var $t_name;
-
 
6
		var $t_group;
Zeile 6... Zeile 7...
6
		
7
		
7
		function __construct($t_id)
8
		function __construct($t_id)
8
		{
9
		{
9
			global $db, $db_meld, $error, $meld;
10
			global $db, $db_meld, $error, $meld;
Zeile 20... Zeile 21...
20
			else
21
			else
21
			{
22
			{
22
				$row=$res->fetchRow(DB_FETCHMODE_ASSOC);
23
				$row=$res->fetchRow(DB_FETCHMODE_ASSOC);
23
				$this->t_id=$t_id;
24
				$this->t_id=$t_id;
24
				$this->t_name=$row["t_name"];
25
				$this->t_name=$row["t_name"];
-
 
26
				$this->t_group=$row["t_group"];
25
				return $this;
27
				return $this;
26
			}
28
			}
27
  		}
29
  		}
-
 
30
  		function listeTeam($limit, $start=0)
-
 
31
		{
-
 
32
			global $db, $db_meld, $error, $meld, $user;
-
 
33
			$sql="SELECT * FROM teams";
-
 
34
//			echo $db->provides('limit');
-
 
35
			if ($db->provides('limit') && $limit > 0)
-
 
36
			{
-
 
37
				$res=$db->limitquery($sql, $start, $limit);
-
 
38
			}
-
 
39
			else
-
 
40
			{
-
 
41
				$res=$db->query($sql);
-
 
42
			}
-
 
43
			if (true == DB::isError($res))
-
 
44
			{
-
 
45
				$error=true;
-
 
46
				$meld="Ein Fehler ist aufgetreten!";
-
 
47
				$db_meld=$res->getUserInfo();
-
 
48
			}
-
 
49
			return $res;
-
 
50
		}
28
 	}
51
 	}
29
?>
52
?>