public function __construct($name, $title = null, $value = null, string $link = null)
14
{
15
parent::__construct($name, $title, $value);
16
if ($link) {
17
$this->ManagerLink = $link;
18
}
19
}
20
21
public function ManagerLink()
22
{
23
return $this->ManagerLink;
24
}
25
26
public function setManagerLink(string $link)
27
{
28
$this->ManagerLink = $link;
29
}
30
31
public function Type()
32
{
33
return 'text password client-side-passsword';
34
}
35
36
public function Title()
37
{
38
return 'Password Key';
39
}
40
41
public function getDescription()
42
{
43
return implode(
44
'<br />',
45
array_filter(
46
[
47
parent::getDescription(),
48
'<em>By separating username and password, you increase security. Make sure to save the passwords somewhere securely, with the exact key listed here to ensure referential integrity.</em>',
49
]
50
)
51
);
52
}
53
54
/**
55
* @return mixed|string
56
*/
57
public function Value()
58
{
59
// Get raw value
60
$value = $this->dataValue();
61
$fontSize = '2em';
62
if (!$value) {
63
$value = 'Code not set yet - please save this record first';