ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilForumPostingFileStakeholder.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 {
28  private int $default_owner;
29 
30  public function __construct()
31  {
32  global $DIC;
33  $this->default_owner = $DIC->isDependencyAvailable('user') ? $DIC->user()->getId() : 6;
34  }
35 
36 
37  public function getId(): string
38  {
39  return 'frm_post';
40  }
41 
42  public function getOwnerOfNewResources(): int
43  {
44  return $this->default_owner;
45  }
46 }
__construct()
Constructor must not have any parameters.
global $DIC
Definition: feed.php:28