Right.class.php 509 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Define a user right (right = crud on rank + section).
  4. * @author valentin carruesco
  5. * @category Core
  6. * @license copyright
  7. */
  8. class Right extends Entity
  9. {
  10. public $id,$rank,$section,$firm,$read,$edit,$delete,$configure;
  11. protected $fields =
  12. array(
  13. 'id' => 'key',
  14. 'rank' => 'int',
  15. 'section' => 'string',
  16. 'firm' => 'int',
  17. 'read' => 'boolean',
  18. 'edit' => 'boolean',
  19. 'delete' => 'boolean',
  20. 'configure' => 'boolean'
  21. );
  22. }