ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilUsersGalleryUserImpl.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/User/Gallery/interfaces/interface.ilUsersGalleryUser.php';
5 
10 {
14  protected $aggregated_user;
15 
19  protected $public_name = '';
20 
24  protected $sortable_public_name = '';
25 
33  {
34  $this->aggregated_user = $aggregated_user;
35  $this->public_name = $public_name;
36  $this->sortable_public_name = $sortable_public_name;
37  }
38 
42  public function hasPublicProfile()
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  }
51 
55  public function getPublicName()
56  {
57  return $this->public_name;
58  }
59 
63  public function getSortablePublicName()
64  {
66  }
67 
71  public function getAggregatedUser()
72  {
74  }
75 }
Class ilUsersGalleryUserImpl.
__construct(ilObjUser $aggregated_user, $public_name, $sortable_public_name)
ilUsersGalleryUserImpl constructor.
global $DIC
Definition: saml.php:7
Interface ilUsersGalleryUser.