Door.class.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /*
  3. @nom: Door
  4. @auteur: Idleman (idleman@idleman.fr)
  5. @description: Classe de gestion des relais filaires
  6. */
  7. class Door extends SQLiteEntity{
  8. protected $id,$name,$description,$pinRelay,$pinCaptor,$room;
  9. protected $TABLE_NAME = 'plugin_door';
  10. protected $CLASS_NAME = 'Door';
  11. protected $object_fields =
  12. array(
  13. 'id'=>'key',
  14. 'name'=>'string',
  15. 'description'=>'string',
  16. 'pinRelay'=>'int',
  17. 'pinCaptor'=>'int',
  18. 'room'=>'int'
  19. );
  20. function __construct(){
  21. parent::__construct();
  22. }
  23. function setId($id){
  24. $this->id = $id;
  25. }
  26. function getId(){
  27. return $this->id;
  28. }
  29. function getName(){
  30. return $this->name;
  31. }
  32. function setName($name){
  33. $this->name = $name;
  34. }
  35. function getDescription(){
  36. return $this->description;
  37. }
  38. function setDescription($description){
  39. $this->description = $description;
  40. }
  41. function getPinRelay(){
  42. return $this->pinRelay;
  43. }
  44. function setPinRelay($pinRelay){
  45. $this->pinRelay = $pinRelay;
  46. }
  47. function getPinCaptor(){
  48. return $this->pinCaptor;
  49. }
  50. function setPinCaptor($pinCaptor){
  51. $this->pinCaptor = $pinCaptor;
  52. }
  53. function getRoom(){
  54. return $this->room;
  55. }
  56. function setRoom($room){
  57. $this->room = $room;
  58. }
  59. }
  60. ?>