ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilDataCollectionStakeholder.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  private int $owner;
24 
25  public function __construct()
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  }
32 
33  public function getId(): string
34  {
35  return "dcl_uploads";
36  }
37 
38  public function getOwnerOfNewResources(): int
39  {
40  return $this->owner;
41  }
42 }
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
__construct()
Constructor must not have any parameters.