ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 (ilObjUser $aggregated_user, string $public_name, string $sortable_public_name)
 
 hasPublicProfile ()
 
 getPublicName ()
 
 getSortablePublicName ()
 
 getAggregatedUser ()
 

Protected Attributes

ilObjUser $aggregated_user
 
string $public_name
 
string $sortable_public_name
 

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 21 of file class.ilUsersGalleryUserImpl.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

References $aggregated_user, $public_name, and $sortable_public_name.

28  {
29  $this->aggregated_user = $aggregated_user;
30  $this->public_name = $public_name;
31  $this->sortable_public_name = $sortable_public_name;
32  }

Member Function Documentation

◆ getAggregatedUser()

ilUsersGalleryUserImpl::getAggregatedUser ( )

Implements ilUsersGalleryUser.

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

References $aggregated_user.

54  : ilObjUser
55  {
57  }

◆ getPublicName()

ilUsersGalleryUserImpl::getPublicName ( )

Implements ilUsersGalleryUser.

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

References $public_name.

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

◆ getSortablePublicName()

ilUsersGalleryUserImpl::getSortablePublicName ( )

Implements ilUsersGalleryUser.

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

References $sortable_public_name.

49  : string
50  {
52  }

◆ hasPublicProfile()

ilUsersGalleryUserImpl::hasPublicProfile ( )

Implements ilUsersGalleryUser.

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

References $DIC.

34  : bool
35  {
36  global $DIC;
37 
38  return (
39  (!$DIC->user()->isAnonymous() && $this->aggregated_user->getPref('public_profile') === 'y') ||
40  $this->aggregated_user->getPref('public_profile') === 'g'
41  );
42  }
global $DIC
Definition: feed.php:28

Field Documentation

◆ $aggregated_user

ilObjUser ilUsersGalleryUserImpl::$aggregated_user
protected

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

Referenced by __construct(), and getAggregatedUser().

◆ $public_name

string ilUsersGalleryUserImpl::$public_name
protected

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

Referenced by __construct(), and getPublicName().

◆ $sortable_public_name

string ilUsersGalleryUserImpl::$sortable_public_name
protected

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

Referenced by __construct(), and getSortablePublicName().


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