ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
AbstractResourceStakeholder.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
29 {
30  private string $provider_name_cache = '';
31 
32  public function getFullyQualifiedClassName(): string
33  {
34  return static::class;
35  }
36 
37  public function isResourceInUse(ResourceIdentification $identification): bool
38  {
39  return false;
40  }
41 
42  public function canBeAccessedByCurrentUser(ResourceIdentification $identification): bool
43  {
44  return true;
45  }
46 
47  public function resourceHasBeenDeleted(ResourceIdentification $identification): bool
48  {
49  return true;
50  }
51 
52  public function getOwnerOfResource(ResourceIdentification $identification): int
53  {
54  return 6;
55  }
56 
57  public function getConsumerNameForPresentation(): string
58  {
59  if ($this->provider_name_cache !== '' && is_string($this->provider_name_cache)) {
61  }
62  $reflector = new \ReflectionClass($this);
63 
64  $parts = explode(DIRECTORY_SEPARATOR, str_replace(ILIAS_ABSOLUTE_PATH, '', dirname($reflector->getFileName())));
65  $parts = array_filter($parts, static function ($part) {
66  return $part !== '' && $part !== 'classes';
67  });
68 
69  return $this->provider_name_cache = implode('/', $parts);
70  }
71 
72  public function getLocationURIForResourceUsage(ResourceIdentification $identification): ?string
73  {
74  return null;
75  }
76 }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64