Right.class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /*
  3. @nom: Right
  4. @auteur: Idleman (idleman@idleman.fr)
  5. @description: Classe de gestion des utilisateurs
  6. */
  7. class Right extends SQLiteEntity{
  8. protected $id,$label,$description;
  9. protected $TABLE_NAME = 'right';
  10. protected $CLASS_NAME = 'Right';
  11. protected $object_fields =
  12. array(
  13. 'id'=>'key',
  14. 'rank'=>'int',
  15. 'section'=>'string',
  16. 'read'=>'boolean',
  17. 'delete'=>'boolean',
  18. 'create'=>'boolean',
  19. 'update'=>'boolean'
  20. );
  21. function __construct(){
  22. parent::__construct();
  23. }
  24. function setId($id){
  25. $this->id = $id;
  26. }
  27. function getId(){
  28. return $this->id;
  29. }
  30. function getRank(){
  31. return $this->rank;
  32. }
  33. function setRank($rank){
  34. $this->rank = $rank;
  35. }
  36. function getSection(){
  37. return $this->section;
  38. }
  39. function setSection($section){
  40. $this->section = $section;
  41. }
  42. function getRead(){
  43. return $this->read;
  44. }
  45. function setRead($read){
  46. $this->read = $read;
  47. }
  48. function getCreate(){
  49. return $this->create;
  50. }
  51. function setCreate($create){
  52. $this->create = $create;
  53. }
  54. function getDelete(){
  55. return $this->delete;
  56. }
  57. function setDelete($delete){
  58. $this->delete = $delete;
  59. }
  60. function getUpdate(){
  61. return $this->update;
  62. }
  63. function setUpdate($update){
  64. $this->update = $update;
  65. }
  66. }
  67. ?>