source: trunk/www/Module/Cluster/Model.php

Last change on this file was 95, checked in by chronos, 10 years ago
  • Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
File size: 600 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/../../Base/Model.php');
4
5class Cluster extends Model
6{
7 function __construct($System, $Id)
8 {
9 parent::__construct($System);
10
11 $DbResult = $this->Database->query('SELECT * FROM `ClusterNode` WHERE `Id`='.$Id);
12 if($DbResult->num_rows > 0)
13 {
14 $this->Data = $DbResult->fetch_assoc();
15 } else return('Položka nenalezena');
16 }
17
18 function GetState()
19 {
20 return($this->System->NetworkPortState($this->Data['NetworkAddress'], 80));
21 }
22
23 function MigrateRealm($RealmId)
24 {
25 }
26
27 function MigrateServer($ServerId)
28 {
29 }
30}
Note: See TracBrowser for help on using the repository browser.