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

Public Member Functions

 __construct ()
 Constructor must not have any parameters. More...
 
 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 $owner
 

Detailed Description

Definition at line 21 of file class.ilDataCollectionStakeholder.php.

Constructor & Destructor Documentation

◆ __construct()

ilDataCollectionStakeholder::__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 25 of file class.ilDataCollectionStakeholder.php.

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

26  {
27  global $DIC;
28  $this->owner = $DIC->isDependencyAvailable('user')
29  ? $DIC->user()->getId()
30  : (defined('SYSTEM_USER_ID') ? (int) SYSTEM_USER_ID : 6);
31  }
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()

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

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 33 of file class.ilDataCollectionStakeholder.php.

33  : string
34  {
35  return "dcl_uploads";
36  }

◆ getOwnerOfNewResources()

ilDataCollectionStakeholder::getOwnerOfNewResources ( )

Field Documentation

◆ $owner

int ilDataCollectionStakeholder::$owner
private

Definition at line 23 of file class.ilDataCollectionStakeholder.php.

Referenced by getOwnerOfNewResources().


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