Subversion-Projekte lars-tiefland.inventar

Revision

Revision 22 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 22 Revision 23
Zeile 38... Zeile 38...
38
		function toArray()
38
		function toArray()
39
		{
39
		{
40
			$ret["id"]=$this->id;
40
			$ret["id"]=$this->id;
41
			$ret["comp_id"]=$this->comp_id;
41
			$ret["comp_id"]=$this->comp_id;
42
			$ret["hw_id"]=$this->hardware_id;
42
			$ret["hw_id"]=$this->hardware_id;
43
			$hw=new hardware($this->hardware_id);
43
			$h=new hardware($this->hardware_id);
-
 
44
			$hw=$h->toArray();
44
			$ret["hw_name"]=$hw->getName();
45
			$ret["hw_name"]=$hw["name"];
45
			$ret["value"]=$this->value;
46
			$ret["value"]=$this->value;
46
			return $ret;
47
			return $ret;
47
		}
48
		}
Zeile 48... Zeile 49...
48
		
49