Subversion-Projekte lars-tiefland.inventar

Revision

Revision 5 | Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
4 lars 1
<?php
2
 
3
	//$Id$
4
 
5
/**
6
 * @author Lars Tiefland <ltiefland@gmail.com>
7
 * @copyright 2008
8
 * @project Inventar Datenbank
9
 */
10
 
11
	class os
12
	{
13
		private $id;
14
		private $name;
15
		function __construct($os_id=0)
16
		{
17
			if($os_id)
18
			{
19
				$GLOBALS["db"]->query("SELECT * FROM os WHERE id=$os_id");
20
				$this->id=$os_id;
21
				$row=$GLOBALS["db"]->fetch_assoc();
22
				$this->name=$row["name"];
23
			}
24
			else
25
			{
26
				$this->id=0;
27
				$this->name='';
28
			}
29
		}
30
	}
31
 
32
?>