Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
propertytype.php
1
<?php
2
3
4
namespace
Bitrix\Calendar\ICal\Basic
;
5
6
7
abstract
class
PropertyType
8
{
9
protected
$names
;
10
protected
$parameters
= [];
11
12
abstract
public
function
getValue
(): string;
13
14
abstract
public
function
getOriginalValue
();
15
16
public
function
__construct
(
$names
)
17
{
18
$this->names = is_string(
$names
)
19
? [
$names
]
20
:
$names
;
21
}
22
23
public
function
getNames
(): array
24
{
25
return
$this->names
;
26
}
27
28
public
function
getParameters
(): array
29
{
30
return
$this->parameters
;
31
}
32
33
public
function
getParameter
(
string
$name):
Parameter
34
{
35
$parameters
= array_values(array_filter(
36
$this->parameters,
37
function
(
Parameter
$property) use ($name) {
38
return
$property->
getName
() === $name;
39
}
40
));
41
42
return
$parameters
[0];
43
}
44
45
public
function
addParameters
(array
$parameters
):
PropertyType
46
{
47
foreach
(
$parameters
as $parameter) {
48
$this->
addParameter
($parameter);
49
}
50
51
return
$this;
52
}
53
54
public
function
addParameter
(
Parameter
$parameter):
PropertyType
55
{
56
$this->parameters[] = $parameter;
57
58
return
$this;
59
}
60
}
Bitrix\Calendar\ICal\Basic\Parameter
Definition
parameter.php:8
Bitrix\Calendar\ICal\Basic\Parameter\getName
getName()
Definition
parameter.php:26
Bitrix\Calendar\ICal\Basic\PropertyType
Definition
propertytype.php:8
Bitrix\Calendar\ICal\Basic\PropertyType\getParameters
getParameters()
Definition
propertytype.php:28
Bitrix\Calendar\ICal\Basic\PropertyType\getNames
getNames()
Definition
propertytype.php:23
Bitrix\Calendar\ICal\Basic\PropertyType\getParameter
getParameter(string $name)
Definition
propertytype.php:33
Bitrix\Calendar\ICal\Basic\PropertyType\addParameter
addParameter(Parameter $parameter)
Definition
propertytype.php:54
Bitrix\Calendar\ICal\Basic\PropertyType\addParameters
addParameters(array $parameters)
Definition
propertytype.php:45
Bitrix\Calendar\ICal\Basic\PropertyType\getOriginalValue
getOriginalValue()
Bitrix\Calendar\ICal\Basic\PropertyType\$parameters
$parameters
Definition
propertytype.php:10
Bitrix\Calendar\ICal\Basic\PropertyType\__construct
__construct($names)
Definition
propertytype.php:16
Bitrix\Calendar\ICal\Basic\PropertyType\getValue
getValue()
Bitrix\Calendar\ICal\Basic\PropertyType\$names
$names
Definition
propertytype.php:9
Bitrix\Calendar\ICal\Basic
Definition
attachmentmanager.php:4
modules
calendar
lib
ical
basic
propertytype.php
Создано системой
1.10.0