Rank.class.php 614 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Define a user rank.
  4. * @author valentin carruesco
  5. * @category Core
  6. * @license copyright
  7. */
  8. class Rank extends Entity
  9. {
  10. public $id,$label,$description;
  11. protected $fields =
  12. array(
  13. 'id' => 'key',
  14. 'label' => 'string',
  15. 'description' => 'longstring'
  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. }