1 | <?php |
||
21 | class User extends AbstractElement |
||
22 | { |
||
23 | /** |
||
24 | * The base template path to the field type templates |
||
25 | */ |
||
26 | const BASE_TEMPLATE_PATH = 'link/_components/fieldtypes/Link/types/element/user'; |
||
27 | |||
28 | /** |
||
29 | * The settings template path |
||
30 | */ |
||
31 | const SETTINGS_TEMPLATE_PATH = self::BASE_TEMPLATE_PATH . '/settings'; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | public $uri = 'mailto:{email}'; |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | public static function displayName(): string |
||
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | protected static function elementType(): string |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function settings(): array |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function getElementText(): string |
||
78 | |||
79 | /** |
||
80 | * @inheritdoc |
||
81 | * @throws \Throwable |
||
82 | * @throws \yii\base\Exception |
||
83 | */ |
||
84 | public function getUrl(): string |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function rules() |
||
125 | |||
126 | /** |
||
127 | * @param $uri |
||
128 | * @return $this |
||
129 | * |
||
130 | * @deprecated Handling legacy setting attribute |
||
131 | */ |
||
132 | public function setUriPath($uri) |
||
137 | } |
||
138 |