1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
attachpropertytype.php
См. документацию.
1<?php
2
3
4namespace Bitrix\Calendar\ICal\Basic;
5
6
8{
9 private $attach;
10
11 public static function getInstance($names, AttachProperty $attach): AttachPropertyType
12 {
13 return new self($names, $attach);
14 }
15
16 public function __construct($names, AttachProperty $attach)
17 {
18 parent::__construct($names);
19
20 $this->attach = $attach;
21
22 if ($this->attach->name)
23 {
24 $this->addParameter(Parameter::getInstance('FILENAME', $this->attach->name));
25 }
26 }
27
28 public function getValue(): string
29 {
30 return "{$this->attach->url}";
31 }
32
34 {
35 return $this->attach;
36 }
37}
__construct($names, AttachProperty $attach)
Определения attachpropertytype.php:16
static getInstance($names, AttachProperty $attach)
Определения attachpropertytype.php:11
static getInstance(string $name, string $value, $disableEscaping=false)
Определения parameter.php:13
addParameter(Parameter $parameter)
Определения propertytype.php:54