ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilUsersGalleryUserImpl Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ 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 ()
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 20 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 22 of file class.ilUsersGalleryUserImpl.php.

26  {
27  }

Member Function Documentation

◆ getAggregatedUser()

ilUsersGalleryUserImpl::getAggregatedUser ( )

Implements ilUsersGalleryUser.

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

49  : ilObjUser
50  {
51  return $this->aggregated_user;
52  }

◆ getPublicName()

ilUsersGalleryUserImpl::getPublicName ( )

Implements ilUsersGalleryUser.

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

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

◆ getSortablePublicName()

ilUsersGalleryUserImpl::getSortablePublicName ( )

Implements ilUsersGalleryUser.

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

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

◆ hasPublicProfile()

ilUsersGalleryUserImpl::hasPublicProfile ( )

Implements ilUsersGalleryUser.

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

References $DIC.

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

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