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