FS_User

The NextGEN Gallery FS User class.

Defined (1)

The class is defined in the following location(s).

/freemius/includes/entities/class-fs-user.php  
  1. class FS_User extends FS_Scope_Entity { 
  2.  
  3. #region Properties 
  4.  
  5. /** 
  6. * @var string 
  7. */ 
  8. public $email; 
  9. /** 
  10. * @var string 
  11. */ 
  12. public $first; 
  13. /** 
  14. * @var string 
  15. */ 
  16. public $last; 
  17. /** 
  18. * @var bool 
  19. */ 
  20. public $is_verified; 
  21. /** 
  22. * @var string|null 
  23. */ 
  24. public $customer_id; 
  25. /** 
  26. * @var float 
  27. */ 
  28. public $gross; 
  29.  
  30. #endregion Properties 
  31.  
  32. /** 
  33. * @param object|bool $user 
  34. */ 
  35. function __construct( $user = false ) { 
  36. parent::__construct( $user ); 
  37.  
  38. function get_name() { 
  39. return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) ); 
  40.  
  41. function is_verified() { 
  42. return ( isset( $this->is_verified ) && true === $this->is_verified ); 
  43.  
  44. static function get_type() { 
  45. return 'user';