19 declare(strict_types=1);
51 if (!strpos($link,
'?')) {
56 $link .= ($this->
getName() .
"=");
58 case self::VALUES[
'login']:
60 $this->
user->getLogin()
64 case self::VALUES[
'user_id']:
65 $link .= ($this->
user->getId());
68 case self::VALUES[
'matriculation']:
69 $link .= ($this->
user->getMatriculation());
74 'Invalid parameter value' 86 case self::VALUES[
'user_id']:
87 return $info .
'=USER_ID';
89 case self::VALUES[
'login']:
90 return $info .
'=LOGIN';
92 case self::VALUES[
'matriculation']:
93 return $info .
'=MATRICULATION';
97 'Invalid parameter value' 105 case self::VALUES[
'user_id']:
109 case self::VALUES[
'login']:
113 case self::VALUES[
'matriculation']:
Immutable class for parameters attached to Web Link items.
Base class for parameters attached to Web Link items.
toXML(ilXmlWriter $writer)
__construct(ilObjUser $user, int $webr_id, int $link_id, int $param_id, int $value, string $name)
appendToLink(string $link)
__construct(Container $dic, ilPlugin $plugin)
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)