Room.class.php 790 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /*
  3. @nom: Room
  4. @auteur: Idleman (idleman@idleman.fr)
  5. @description: Classe de gestion des pieces
  6. */
  7. class Room extends SQLiteEntity{
  8. public $id,$name,$description,$state;
  9. protected $TABLE_NAME = 'plugin_room';
  10. protected $CLASS_NAME = 'Room';
  11. protected $object_fields =
  12. array(
  13. 'id'=>'key',
  14. 'name'=>'string',
  15. 'description'=>'string',
  16. 'state' => 'int'
  17. );
  18. function __construct(){
  19. $this->state = 0;
  20. parent::__construct();
  21. }
  22. function setId($id){
  23. $this->id = $id;
  24. }
  25. function getId(){
  26. return $this->id;
  27. }
  28. function getName(){
  29. return $this->name;
  30. }
  31. function setName($name){
  32. $this->name = $name;
  33. }
  34. function getDescription(){
  35. return $this->description;
  36. }
  37. function setDescription($description){
  38. $this->description = $description;
  39. }
  40. }
  41. ?>