ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTemporaryStakeholder Class Reference

Class Temporary. More...

+ Inheritance diagram for ilTemporaryStakeholder:
+ Collaboration diagram for ilTemporaryStakeholder:

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)
 

Protected Attributes

int $owner_id
 

Detailed Description

Class Temporary.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 17 of file class.ilTemporaryStakeholder.php.

Constructor & Destructor Documentation

◆ __construct()

ilTemporaryStakeholder::__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 21 of file class.ilTemporaryStakeholder.php.

References $DIC.

22  {
23  global $DIC;
24 
25  $this->owner_id = $DIC->user()->getId();
26  }
global $DIC
Definition: feed.php:28

Member Function Documentation

◆ getId()

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

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

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

28  : string
29  {
30  return 'irss_temp';
31  }

◆ getOwnerOfNewResources()

ilTemporaryStakeholder::getOwnerOfNewResources ( )

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

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

References $owner_id.

33  : int
34  {
35  return $this->owner_id;
36  }

Field Documentation

◆ $owner_id

int ilTemporaryStakeholder::$owner_id
protected

Definition at line 19 of file class.ilTemporaryStakeholder.php.

Referenced by getOwnerOfNewResources().


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