ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUsersGalleryUserImpl Class Reference

Class ilUsersGalleryUserImpl. More...

+ Inheritance diagram for ilUsersGalleryUserImpl:
+ Collaboration diagram for ilUsersGalleryUserImpl:

Public Member Functions

 __construct (ilObjUser $aggregated_user, $public_name, $sortable_public_name)
 ilUsersGalleryUserImpl constructor. More...
 
 hasPublicProfile ()
 
Returns
boolean
More...
 
 getPublicName ()
 
Returns
string
More...
 
 getSortablePublicName ()
 
Returns
string
More...
 
 getAggregatedUser ()
 
Returns
ilObjUser
More...
 

Protected Attributes

 $aggregated_user
 
 $public_name = ''
 
 $sortable_public_name = ''
 

Detailed Description

Class ilUsersGalleryUserImpl.

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

Constructor & Destructor Documentation

◆ __construct()

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

ilUsersGalleryUserImpl constructor.

Parameters
ilObjUser$aggregated_user
string$public_name
string$sortable_public_name

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

References $aggregated_user, $public_name, and $sortable_public_name.

33  {
34  $this->aggregated_user = $aggregated_user;
35  $this->public_name = $public_name;
36  $this->sortable_public_name = $sortable_public_name;
37  }

Member Function Documentation

◆ getAggregatedUser()

ilUsersGalleryUserImpl::getAggregatedUser ( )

Returns
ilObjUser

Implements ilUsersGalleryUser.

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

References $aggregated_user.

◆ getPublicName()

ilUsersGalleryUserImpl::getPublicName ( )

Returns
string

Implements ilUsersGalleryUser.

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

References $public_name.

◆ getSortablePublicName()

ilUsersGalleryUserImpl::getSortablePublicName ( )

Returns
string

Implements ilUsersGalleryUser.

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

References $sortable_public_name.

◆ hasPublicProfile()

ilUsersGalleryUserImpl::hasPublicProfile ( )

Returns
boolean

Implements ilUsersGalleryUser.

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

References $DIC.

43  {
44  global $DIC;
45 
46  return (
47  (!$DIC->user()->isAnonymous() && $this->aggregated_user->getPref('public_profile') == 'y') ||
48  $this->aggregated_user->getPref('public_profile') == 'g'
49  );
50  }
global $DIC
Definition: saml.php:7

Field Documentation

◆ $aggregated_user

ilUsersGalleryUserImpl::$aggregated_user
protected

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

Referenced by __construct(), and getAggregatedUser().

◆ $public_name

ilUsersGalleryUserImpl::$public_name = ''
protected

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

Referenced by __construct(), and getPublicName().

◆ $sortable_public_name

ilUsersGalleryUserImpl::$sortable_public_name = ''
protected

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

Referenced by __construct(), and getSortablePublicName().


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