1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
attachpropertytype.php
См. документацию.
1
<?php
2
3
4
namespace
Bitrix\Calendar\ICal\Basic;
5
6
7
class
AttachPropertyType
extends
PropertyType
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
33
public
function
getOriginalValue
():
AttachProperty
34
{
35
return
$this->attach;
36
}
37
}
Bitrix\Calendar\ICal\Basic\AttachProperty
Определения
attachproperty.php:8
Bitrix\Calendar\ICal\Basic\AttachPropertyType
Определения
attachpropertytype.php:8
Bitrix\Calendar\ICal\Basic\AttachPropertyType\__construct
__construct($names, AttachProperty $attach)
Определения
attachpropertytype.php:16
Bitrix\Calendar\ICal\Basic\AttachPropertyType\getInstance
static getInstance($names, AttachProperty $attach)
Определения
attachpropertytype.php:11
Bitrix\Calendar\ICal\Basic\AttachPropertyType\getOriginalValue
getOriginalValue()
Определения
attachpropertytype.php:33
Bitrix\Calendar\ICal\Basic\AttachPropertyType\getValue
getValue()
Определения
attachpropertytype.php:28
Bitrix\Calendar\ICal\Basic\Parameter\getInstance
static getInstance(string $name, string $value, $disableEscaping=false)
Определения
parameter.php:13
Bitrix\Calendar\ICal\Basic\PropertyType
Определения
propertytype.php:8
Bitrix\Calendar\ICal\Basic\PropertyType\addParameter
addParameter(Parameter $parameter)
Определения
propertytype.php:54
Bitrix\Calendar\ICal\Basic\PropertyType\$names
$names
Определения
propertytype.php:9
bitrix
modules
calendar
lib
ical
basic
attachpropertytype.php
Создано системой
1.14.0