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

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 $current_user
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

assFileUploadStakeholder::__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 28 of file class.assFileUploadStakeholder.php.

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

29  {
30  global $DIC;
31  $anonymous = defined(
32  'ANONYMOUS_USER_ID'
33  ) ? ANONYMOUS_USER_ID : 13;
34  $this->current_user = (int) ($DIC->isDependencyAvailable('user') ? $DIC->user()->getId() : $anonymous);
35  }
const ANONYMOUS_USER_ID
Definition: constants.php:27
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ getId()

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

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 37 of file class.assFileUploadStakeholder.php.

37  : string
38  {
39  return 'qpl_file_upload';
40  }

◆ getOwnerOfNewResources()

assFileUploadStakeholder::getOwnerOfNewResources ( )

Field Documentation

◆ $current_user

int assFileUploadStakeholder::$current_user
private

Definition at line 26 of file class.assFileUploadStakeholder.php.

Referenced by getOwnerOfNewResources().


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