Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
recurrencerulepropertytype.php
1
<?php
2
3
4
namespace
Bitrix\Calendar\ICal\Basic
;
5
6
7
class
RecurrenceRulePropertyType
extends
PropertyType
8
{
9
private
$rrule;
10
11
public
static
function
createInstance
(
$names
,
RecurrenceRuleProperty
$rrule):
RecurrenceRulePropertyType
12
{
13
return
new
self
(
$names
, $rrule);
14
}
15
16
public
function
__construct
(
$names
,
RecurrenceRuleProperty
$rrule)
17
{
18
parent::__construct(
$names
);
19
20
$this->rrule = $rrule;
21
22
if
($this->rrule->count)
23
{
24
$this->
addParameter
(
Parameter::getInstance
(
'COUNT'
, $this->rrule->count));
25
}
26
27
if
($this->rrule->until)
28
{
29
$this->
addParameter
(
Parameter::getInstance
(
'UNTIL'
, $this->rrule->until));
30
}
31
32
if
($this->rrule->freq)
33
{
34
$this->
addParameter
(
Parameter::getInstance
(
'FREQ'
, $this->rrule->freq));
35
}
36
37
if
($this->rrule->interval)
38
{
39
$this->
addParameter
(
Parameter::getInstance
(
'INTERVAL'
, $this->rrule->interval));
40
}
41
42
if
($this->rrule->day && is_array($this->rrule->day))
43
{
44
$this->
addParameter
(
Parameter::getInstance
(
'BYDAY'
, implode(
','
, $this->rrule->day),
true
));
45
}
46
}
47
48
public
function
getValue
(): string
49
{
50
return
""
;
51
}
52
53
public
function
getOriginalValue
():
RecurrenceRuleProperty
54
{
55
return
$this->rrule;
56
}
57
}
Bitrix\Calendar\ICal\Basic\Parameter\getInstance
static getInstance(string $name, string $value, $disableEscaping=false)
Definition
parameter.php:13
Bitrix\Calendar\ICal\Basic\PropertyType
Definition
propertytype.php:8
Bitrix\Calendar\ICal\Basic\PropertyType\addParameter
addParameter(Parameter $parameter)
Definition
propertytype.php:54
Bitrix\Calendar\ICal\Basic\PropertyType\$names
$names
Definition
propertytype.php:9
Bitrix\Calendar\ICal\Basic\RecurrenceRuleProperty
Definition
recurrenceruleproperty.php:8
Bitrix\Calendar\ICal\Basic\RecurrenceRulePropertyType
Definition
recurrencerulepropertytype.php:8
Bitrix\Calendar\ICal\Basic\RecurrenceRulePropertyType\createInstance
static createInstance($names, RecurrenceRuleProperty $rrule)
Definition
recurrencerulepropertytype.php:11
Bitrix\Calendar\ICal\Basic\RecurrenceRulePropertyType\getOriginalValue
getOriginalValue()
Definition
recurrencerulepropertytype.php:53
Bitrix\Calendar\ICal\Basic\RecurrenceRulePropertyType\getValue
getValue()
Definition
recurrencerulepropertytype.php:48
Bitrix\Calendar\ICal\Basic\RecurrenceRulePropertyType\__construct
__construct($names, RecurrenceRuleProperty $rrule)
Definition
recurrencerulepropertytype.php:16
Bitrix\Calendar\ICal\Basic
Definition
attachmentmanager.php:4
modules
calendar
lib
ical
basic
recurrencerulepropertytype.php
Создано системой
1.10.0