+++ /dev/null
-<?php
-
- require_once('protected/required.php');
-
- class Alerte {
-
- protected $id, $creation, $nature, $message, $version;
-
- /// CONSTRUCTOR
- function __construct($id = null, $creation = null, $nature = null, $message = null, $version = null) {
-
- $this -> id = $id;
- $this -> creation = $creation;
- $this -> nature = $nature;
- $this -> message = $message;
- $this -> version = $version;
-
- }
-
- public function getJSON() {
- return json_encode(get_object_vars($this));
- }
-
- public function getJSONP() {
- $array["id"] = $this -> id;
- $array["creation"] = $this -> creation;
- $array["nature"] = $this -> nature;
- $array["message"] = $this -> message;
- $array["version"] = $this -> version;
-
- return json_encode($array);
- }
-
- /// GETTERS
- public function getId() { return $this -> id; }
- public function getCreation() { return $this->creation; }
- public function getNature() { return $this->nature; }
- public function getMessage() { return $this->message; }
- public function getVersion() { return $this->version; }
-
- /// SETTERS
- public function setId($id) { $this -> id = $id; }
- public function setCreation($creation) { $this->creation = $creation; }
- public function setNature($nature) { $this->nature = $nature; }
- public function setMessage($message) { $this->message = $message; }
- public function setVersion($version) { $this->version = $version; }
-
- }
-
-?>
\ No newline at end of file