--- /dev/null
+<?php
+
+ require_once('protected/required.php');
+
+ class Historique {
+
+ protected $id, $installation;
+
+ /// CONSTRUCTEUR
+ function __construct($id = null, $installation = null) {
+
+ $this -> id = $id;
+ $this -> installation = $installation;
+
+ }
+
+ public function getJSON() {
+ return json_encode(get_object_vars($this));
+ }
+
+ public function getJSONP() {
+ $array["id"] = $this -> id;
+ $array["installation"] = $this -> installation;
+
+ return json_encode($array);
+ }
+
+ /// GETTERS
+ public function getId() { return $this -> id; }
+ public function getInstallation() { return $this->installation; }
+
+ /// SETTERS
+ public function setId($id) { $this -> id = $id; }
+ public function setInstallation($installation) { $this->installation = $installation; }
+
+ }
+
+?>
\ No newline at end of file