shibboleth_user.class.php 761 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Shibboleth;
  3. /**
  4. * Represent a Shibboleth user. Not to be missunderstand with a Chamilo user
  5. * since they don't have the same attributes.
  6. *
  7. * @license see /license.txt
  8. * @author Laurent Opprecht <laurent@opprecht.info>, Nicolas Rod for the University of Geneva
  9. */
  10. class ShibbolethUser
  11. {
  12. public $unique_id = '';
  13. public $firstname = '';
  14. public $lastname = '';
  15. public $email = '';
  16. public $language = '';
  17. public $gender = '';
  18. public $address = '';
  19. public $staff_category = '';
  20. public $home_organization_type = '';
  21. public $home_organization = '';
  22. public $affiliation = '';
  23. public $persistent_id = '';
  24. public function is_empty()
  25. {
  26. return empty($this->unique_id);
  27. }
  28. }