\r
class Produit {\r
\r
- protected $id, $nom, $reference, $version;\r
+ protected $id, $nom, $exploitant, $reference, $version;\r
\r
/// CONSTRUCTEUR\r
- function __construct($id = null, $nom = null, $reference = null, $version = null) {\r
+ function __construct($id = null, $nom = null, $exploitant = null, $reference = null, $version = null) {\r
\r
$this -> id = $id;\r
$this -> nom = $nom;\r
+ $this -> exploitant = $exploitant;\r
$this -> reference = $reference;\r
$this -> version = $version;\r
\r
+ // TO-DO : AJOUT DE :\r
+ /*\r
+ - fqdnInterne\r
+ - fqdnExterne\r
+ - systeme\r
+ - uid\r
+ - historique\r
+ */\r
}\r
\r
public function getJSON() {\r
public function getJSONP() {\r
$array["id"] = $this -> id;\r
$array["nom"] = $this -> nom;\r
+ $array["exploitant"] = $this -> exploitant;\r
$array["reference"] = $this -> reference;\r
$array["version"] = $this -> version;\r
\r
/// GETTERS\r
public function getId() { return $this -> id; }\r
public function getNom() { return $this->nom; }\r
+ public function getExploitant() { return $this->exploitant; }\r
public function getReference() { return $this->reference; }\r
public function getVersion() { return $this->version; }\r
\r
/// SETTERS\r
public function setId($id) { $this -> id = $id; }\r
public function setNom($nom) { $this->nom = $nom; }\r
+ public function setExploitant($exploitant) { $this->exploitant = $exploitant; }\r
public function setReference($reference) { $this->reference = $reference; }\r
public function setVersion($version) { $this->version = $version; }\r
\r