Rank.class.php 848 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Define a user rank.
  4. * @author valentin carruesco
  5. * @category Core
  6. * @license MIT
  7. */
  8. class Rank extends Entity {
  9. public $id,$label,$description,$superadmin;
  10. public $entityLabel = 'Rang';
  11. protected $fields = array(
  12. 'id' => array('label'=> 'Identifiant' , 'type'=>'key'),
  13. 'label' => array('label'=> 'Libellé' , 'type'=>'text'),
  14. 'description' => array('label'=> 'Description' , 'type'=>'textarea'),
  15. 'superadmin' => array('label'=> 'Rang super administrateur' , 'type'=>'boolean')
  16. );
  17. function setId($id){
  18. $this->id = $id;
  19. }
  20. function getId(){
  21. return $this->id;
  22. }
  23. function getLabel(){
  24. return $this->label;
  25. }
  26. function setLabel($label){
  27. $this->label = $label;
  28. }
  29. function getDescription(){
  30. return $this->description;
  31. }
  32. function setDescription($description){
  33. $this->description = $description;
  34. }
  35. }