Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 140 Revision 143
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	//$Id: vServer.class.php 140 2008-08-08 21:55:25Z lars $
2
	//$Id: vServer.class.php 143 2008-08-08 22:06:36Z lars $
3
	/**
3
	/**
4
	 * 	@package	openvz_admin
4
	 * 	@package	openvz_admin
5
	 * 	@author		Lars Tiefland <ltiefland@gmail.com> 
5
	 * 	@author		Lars Tiefland <ltiefland@gmail.com> 
6
	 **/
6
	 **/
7
	class vServer
7
	class vServer
Zeile 10... Zeile 10...
10
		protected $name;
10
		protected $name;
11
		protected $hn_id;
11
		protected $hn_id;
12
		protected $dist;
12
		protected $dist;
13
		protected $dist_id;
13
		protected $dist_id;
14
		protected $v_id;
14
		protected $v_id;
-
 
15
		
-
 
16
		function toArray()
-
 
17
		{
-
 
18
			$ret["hn_id"]=$this->hn_id;
-
 
19
			$ret["v_id"]=$this->v_id;
-
 
20
			$ret["dist_id"]=$this->dist_id;
-
 
21
			$ret["dist"]=$this->dist;
-
 
22
			$ret["name"]=$this->name;
-
 
23
			$ret["status"]=$this->status;
-
 
24
			return $ret;
-
 
25
		}
15
		function __construct($v_id = null, $hn_id = 1)
26
		function __construct($v_id = null, $hn_id = 1)
16
		{
27
		{
17
			global $db;
28
			global $db;
18
			if (is_numeric($v_id))
29
			if (is_numeric($v_id))
19
			{
30
			{