ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilObjectTileImageStakeholder.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
29 {
30  private int $default_owner;
31 
32  public function __construct()
33  {
34  global $DIC;
35  $this->default_owner = $DIC->isDependencyAvailable('user')
36  ? $DIC->user()->getId()
37  : (defined('SYSTEM_USER_ID') ? (int) SYSTEM_USER_ID : 6);
38  }
39 
40  public function setOwner(int $user_id_of_owner): void
41  {
42  $this->default_owner = $user_id_of_owner;
43  }
44 
45  public function getId(): string
46  {
47  return 'object_tile_image';
48  }
49 
50  public function getOwnerOfNewResources(): int
51  {
52  return $this->default_owner;
53  }
54 }
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