ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LanguageForTargetedResource.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
26 {
27  protected ?LanguageTag $target_resource_language = null;
28 
29  public function withLanguageForTargetedResource(LanguageTag $target_resource_language): self
30  {
31  $clone = clone $this;
32  $clone->target_resource_language = $target_resource_language;
33  return $clone;
34  }
35 
37  {
38  return $this->target_resource_language;
39  }
40 }
withLanguageForTargetedResource(LanguageTag $target_resource_language)
This class represents a valid language tag that should be used instead of plain strings.
Definition: LanguageTag.php:39
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null