ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilUsersGalleryUserImpl Class Reference
+ Inheritance diagram for ilUsersGalleryUserImpl:
+ Collaboration diagram for ilUsersGalleryUserImpl:

Public Member Functions

 __construct (protected ilObjUser $aggregated_user, protected string $public_name, protected string $sortable_public_name)
 
 hasPublicProfile ()
 
 getPublicName ()
 
 getSortablePublicName ()
 
 getAggregatedUser ()
 
 hasPublicProfile ()
 
 getPublicName ()
 
 getSortablePublicName ()
 
 getAggregatedUser ()
 

Detailed Description

Definition at line 21 of file class.ilUsersGalleryUserImpl.php.

Constructor & Destructor Documentation

◆ __construct()

ilUsersGalleryUserImpl::__construct ( protected ilObjUser  $aggregated_user,
protected string  $public_name,
protected string  $sortable_public_name 
)

Definition at line 23 of file class.ilUsersGalleryUserImpl.php.

27 {
28 }

Member Function Documentation

◆ getAggregatedUser()

ilUsersGalleryUserImpl::getAggregatedUser ( )

Implements ilUsersGalleryUser.

Definition at line 50 of file class.ilUsersGalleryUserImpl.php.

50 : ilObjUser
51 {
52 return $this->aggregated_user;
53 }
User class.

◆ getPublicName()

ilUsersGalleryUserImpl::getPublicName ( )

Implements ilUsersGalleryUser.

Definition at line 40 of file class.ilUsersGalleryUserImpl.php.

40 : string
41 {
42 return $this->public_name;
43 }

◆ getSortablePublicName()

ilUsersGalleryUserImpl::getSortablePublicName ( )

Implements ilUsersGalleryUser.

Definition at line 45 of file class.ilUsersGalleryUserImpl.php.

45 : string
46 {
47 return $this->sortable_public_name;
48 }

◆ hasPublicProfile()

ilUsersGalleryUserImpl::hasPublicProfile ( )

Implements ilUsersGalleryUser.

Definition at line 30 of file class.ilUsersGalleryUserImpl.php.

30 : bool
31 {
32 global $DIC;
33
34 return (
35 (!$DIC->user()->isAnonymous() && $this->aggregated_user->getPref('public_profile') === 'y') ||
36 $this->aggregated_user->getPref('public_profile') === 'g'
37 );
38 }
global $DIC
Definition: shib_login.php:26

References $DIC.


The documentation for this class was generated from the following file: