--- /dev/null
+<?php
+
+ require_once('protected/required.php');
+
+ class Appliance {
+
+ protected $id, $product, $manager, $reference, $changelog, $maintained, $internalFqdn, $externalFqdn, $os, $discInfos, $channel;
+
+ /// CONSTRUCTOR
+ function __construct($id = null, $product = null, $manager = null, $reference = null, $changelog = null,
+ $maintained = null, $internalFqdn = null, $externalFqdn = null, $os = null, $discInfos = null, $channel = null) {
+
+ $this -> id = $id;
+ $this -> product = $product;
+ // MANAGER REFERENCE
+ $this -> manager = $manager;
+ // APPLIANCE REFERENCE
+ $this -> reference = $reference;
+ // CHANGELOG ID
+ $this -> changelog = $changelog;
+ // APPLIANCE MAINTENANCE STATE
+ $this -> maintained = $maintained;
+ // FQDNs
+ $this -> internalFqdn = $internalFqdn;
+ $this -> externalFqdn = $externalFqdn;
+ // OS
+ $this -> os = $os;
+ // UUIDS
+ $this -> discInfos = $discInfos;
+ // CHANNEL
+ $this -> channel = $channel;
+ }
+
+ public function getJSON() {
+ return json_encode(get_object_vars($this));
+ }
+
+ public function getJSONP() {
+ $array["id"] = $this -> id;
+ $array["product"] = $this -> product;
+ $array["manager"] = $this -> manager;
+ $array["reference"] = $this -> reference;
+ $array["changelog"] = $this -> changelog;
+ $array["maintained"] = $this -> maintained;
+ $array["internalFqdn"] = $this -> internalFqdn;
+ $array["externalFqdn"] = $this -> externalFqdn;
+ $array["os"] = $this -> os;
+ $array["discInfos"] = $this -> discInfos;
+ $array["channel"] = $this -> channel;
+
+ return json_encode($array);
+ }
+
+ /// GETTERS
+ public function getId() { return $this -> id; }
+ public function getProduct() { return $this->product; }
+ public function getManager() { return $this->manager; }
+ public function getReference() { return $this->reference; }
+ public function getChangelog() { return $this->changelog; }
+ public function isMaintained() { return $this->maintained; }
+ public function getInternalFqdn() { return $this->internalFqdn; }
+ public function getExternalFqdn() { return $this->externalFqdn; }
+ public function getOs() { return $this->os; }
+ public function getDiscInfos() { return $this->discInfos; }
+ public function getChannel() { return $this->channel; }
+
+ /// SETTERS
+ public function setId($id) { $this -> id = $id; }
+ public function setProduct($product) { $this->product = $product; }
+ public function setManager($manager) { $this->manager = $manager; }
+ public function setReference($reference) { $this->reference = $reference; }
+ public function setChangelog($changelog) { $this->changelog = $changelog; }
+ public function setMaintained($maintained) { $this->maintained = $maintained; }
+ public function setInternalFqdn($internalFqdn) { $this->internalFqdn = $internalFqdn; }
+ public function setExternalFqdn($externalFqdn) { $this->externalFqdn = $externalFqdn; }
+ public function setOs($os) { $this->os = $os; }
+ public function setDiscinfos($discInfos) { $this->discInfos = $discInfos; }
+ public function setChannel($channel) { $this->channel = $channel; }
+
+ }
+
+?>
\ No newline at end of file