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