+++ /dev/null
-<?php
-
- require_once('protected/required.php');
-
- class Instance {
-
- protected $id, $nom, $exploitant, $reference, $version, $historique, $maintenu, $fqdnInterne, $fqdnExterne, $systeme, $disques, $canal;
-
- /// CONSTRUCTOR
- function __construct($id = null, $nom = null, $exploitant = null, $reference = null, $version = null, $historique = null,
- $maintenu = null, $fqdnInterne = null, $fqdnExterne = null, $systeme = null, $disques = null, $canal = null) {
-
- $this -> id = $id;
- $this -> nom = $nom;
- // MANAGER REFERENCE
- $this -> exploitant = $exploitant;
- // APPLIANCE REFERENCE
- $this -> reference = $reference;
- // VERSION
- $this -> version = $version;
- // CHANGELOG ID
- $this -> historique = $historique;
- // APPLIANCE MAINTENANCE STATE
- $this -> maintenu = $maintenu;
- // FQDNs
- $this -> fqdnInterne = $fqdnInterne;
- $this -> fqdnExterne = $fqdnExterne;
- // OS
- $this -> systeme = $systeme;
- // UUIDS
- $this -> disques = $disques;
- // CHANNEL
- $this -> canal = $canal;
- }
-
- public function getJSON() {
- return json_encode(get_object_vars($this));
- }
-
- public function getJSONP() {
- $array["id"] = $this -> id;
- $array["nom"] = $this -> nom;
- $array["exploitant"] = $this -> exploitant;
- $array["reference"] = $this -> reference;
- $array["version"] = $this -> version;
- $array["historique"] = $this -> historique;
- $array["maintenu"] = $this -> maintenu;
- $array["fqdnInterne"] = $this -> fqdnInterne;
- $array["fqdnExterne"] = $this -> fqdnExterne;
- $array["systeme"] = $this -> systeme;
- $array["disques"] = $this -> disques;
- $array["canal"] = $this -> canal;
-
- return json_encode($array);
- }
-
- /// GETTERS
- public function getId() { return $this -> id; }
- public function getNom() { return $this->nom; }
- public function getExploitant() { return $this->exploitant; }
- public function getReference() { return $this->reference; }
- public function getVersion() { return $this->version; }
- public function getHistorique() { return $this->historique; }
- public function estMaintenu() { return $this->maintenu; }
- public function getFqdnInterne() { return $this->fqdnInterne; }
- public function getFqdnExterne() { return $this->fqdnExterne; }
- public function getSysteme() { return $this->systeme; }
- public function getDisques() { return $this->disques; }
- public function getCanal() { return $this->canal; }
-
- /// SETTERS
- public function setId($id) { $this -> id = $id; }
- public function setNom($nom) { $this->nom = $nom; }
- public function setExploitant($exploitant) { $this->exploitant = $exploitant; }
- public function setReference($reference) { $this->reference = $reference; }
- public function setVersion($version) { $this->version = $version; }
- public function setHistorique($historique) { $this->historique = $historique; }
- public function setMaintenu($maintenu) { $this->maintenu = $maintenu; }
- public function setFqdnInterne($fqdnInterne) { $this->fqdnInterne = $fqdnInterne; }
- public function setFqdnExterne($fqdnExterne) { $this->fqdnExterne = $fqdnExterne; }
- public function setSysteme($systeme) { $this->systeme = $systeme; }
- public function setDisques($disques) { $this->disques = $disques; }
- public function setCanal($canal) { $this->canal = $canal; }
-
- }
-
-?>
\ No newline at end of file