ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilUserProfilePictureStakeholder Class Reference
+ Inheritance diagram for ilUserProfilePictureStakeholder:
+ Collaboration diagram for ilUserProfilePictureStakeholder:

Public Member Functions

 __construct ()
 Constructor must not have any parameters. More...
 
 setOwner (int $user_id_of_owner)
 
 getId ()
 
 getOwnerOfNewResources ()
 
- Public Member Functions inherited from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder
 getFullyQualifiedClassName ()
 
 isResourceInUse (ResourceIdentification $identification)
 
 canBeAccessedByCurrentUser (ResourceIdentification $identification)
 
 resourceHasBeenDeleted (ResourceIdentification $identification)
 
 getOwnerOfResource (ResourceIdentification $identification)
 
 getConsumerNameForPresentation ()
 
 getLocationURIForResourceUsage (ResourceIdentification $identification)
 

Private Attributes

int $default_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilUserProfilePictureStakeholder::__construct ( )

Constructor must not have any parameters.

The Stakeholder must be able to be instantiated without any parameters. Additionally, Stakeholder may get instantiated without dependencies available. Therefore, the Stakeholder must must check for dependencies and implement fallbacks.

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 30 of file class.ilUserProfilePictureStakeholder.php.

References $DIC, ILIAS\Repository\int(), and SYSTEM_USER_ID.

31  {
32  global $DIC;
33  $this->default_owner = $DIC->isDependencyAvailable('user')
34  ? $DIC->user()->getId()
35  : (defined('SYSTEM_USER_ID') ? (int) SYSTEM_USER_ID : 6);
36  }
const SYSTEM_USER_ID
This file contains constants for PHPStan analyis, see: https://phpstan.org/config-reference#constants...
Definition: constants.php:26
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ getId()

ilUserProfilePictureStakeholder::getId ( )
Returns
string not longer than 64 characters

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 43 of file class.ilUserProfilePictureStakeholder.php.

43  : string
44  {
45  return 'usr_picture';
46  }

◆ getOwnerOfNewResources()

ilUserProfilePictureStakeholder::getOwnerOfNewResources ( )

◆ setOwner()

ilUserProfilePictureStakeholder::setOwner ( int  $user_id_of_owner)

Definition at line 38 of file class.ilUserProfilePictureStakeholder.php.

38  : void
39  {
40  $this->default_owner = $user_id_of_owner;
41  }

Field Documentation

◆ $default_owner

int ilUserProfilePictureStakeholder::$default_owner
private

Definition at line 28 of file class.ilUserProfilePictureStakeholder.php.

Referenced by getOwnerOfNewResources().


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