ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
4require_once 'Services/User/Gallery/interfaces/interface.ilUsersGalleryUser.php';
5
10{
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilUsersGalleryUserImpl.
__construct(ilObjUser $aggregated_user, $public_name, $sortable_public_name)
ilUsersGalleryUserImpl constructor.
Interface ilUsersGalleryUser.
$DIC
Definition: xapitoken.php:46