ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
9
class
ilUsersGalleryUserImpl
implements
ilUsersGalleryUser
10
{
14
protected
$aggregated_user
;
15
19
protected
$public_name
=
''
;
20
24
protected
$sortable_public_name
=
''
;
25
32
public
function
__construct
(
ilObjUser
$aggregated_user
,
$public_name
,
$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
}
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
{
65
return
$this->sortable_public_name
;
66
}
67
71
public
function
getAggregatedUser
()
72
{
73
return
$this->aggregated_user
;
74
}
75
}
ilUsersGalleryUserImpl\getAggregatedUser
getAggregatedUser()
ilObjUser
Definition:
class.ilUsersGalleryUserImpl.php:71
ilUsersGalleryUserImpl
Class ilUsersGalleryUserImpl.
Definition:
class.ilUsersGalleryUserImpl.php:9
ilUsersGalleryUserImpl\__construct
__construct(ilObjUser $aggregated_user, $public_name, $sortable_public_name)
ilUsersGalleryUserImpl constructor.
Definition:
class.ilUsersGalleryUserImpl.php:32
$DIC
global $DIC
Definition:
saml.php:7
ilUsersGalleryUser
Interface ilUsersGalleryUser.
Definition:
interface.ilUsersGalleryUser.php:7
ilUsersGalleryUserImpl\hasPublicProfile
hasPublicProfile()
boolean
Definition:
class.ilUsersGalleryUserImpl.php:42
ilUsersGalleryUserImpl\getPublicName
getPublicName()
string
Definition:
class.ilUsersGalleryUserImpl.php:55
ilUsersGalleryUserImpl\getSortablePublicName
getSortablePublicName()
string
Definition:
class.ilUsersGalleryUserImpl.php:63
ilObjUser
Definition:
class.ilObjUser.php:25
ilUsersGalleryUserImpl\$aggregated_user
$aggregated_user
Definition:
class.ilUsersGalleryUserImpl.php:14
ilUsersGalleryUserImpl\$sortable_public_name
$sortable_public_name
Definition:
class.ilUsersGalleryUserImpl.php:24
ilUsersGalleryUserImpl\$public_name
$public_name
Definition:
class.ilUsersGalleryUserImpl.php:19
Services
User
Gallery
classes
class.ilUsersGalleryUserImpl.php
Generated on Tue Jan 28 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)