ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilWebLinkBaseParameter.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 abstract class ilWebLinkBaseParameter
27 {
28  public const UNDEFINED_NAME = 'undefined';
29  public const USER_ID_NAME = 'user_id';
30  public const LOGIN_NAME = 'login';
31  public const MATRICULATION_NAME = 'matriculation';
32 
36  public const VALUES = [
37  self::UNDEFINED_NAME => 0,
38  self::USER_ID_NAME => 1,
39  self::LOGIN_NAME => 3,
40  self::MATRICULATION_NAME => 4
41  ];
42 
47  public const VALUES_TEXT = [
48  self::VALUES[self::UNDEFINED_NAME] => 'links_select_one',
49  self::VALUES[self::USER_ID_NAME] => 'links_user_id',
50  self::VALUES[self::LOGIN_NAME] => 'links_user_name',
51  self::VALUES[self::MATRICULATION_NAME] => 'matriculation',
52  ];
53 
54  protected int $value;
55  protected string $name;
56 
57  public function __construct(int $value, string $name)
58  {
59  $this->value = $value;
60  $this->name = $name;
61  }
62 
63  public function getValue(): int
64  {
65  return $this->value;
66  }
67 
68  public function getName(): string
69  {
70  return $this->name;
71  }
72 }
__construct(int $value, string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const VALUES
TODO Once the GUI is updated, undefined can be dropped.
const VALUES_TEXT
Keys of the language variables to the possible values, e.g.