1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
attr.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\Web\DOM
;
4
5
class
Attr
extends
Node
6
{
10
protected
$name
=
null
;
11
12
public
$value
=
null
;
13
14
public
function
__construct
(
$name
,
$value
)
15
{
16
parent::__construct();
17
18
$this->nodeType = self::ATTRIBUTE_NODE;
19
20
$this->name = mb_strtolower(
$name
);
21
$this->value =
$value
;
22
}
23
24
public
function
toString
()
25
{
26
return
$this->name .
'="'
. $this->value .
'"'
;
27
}
28
29
public
function
getName
()
30
{
31
return
$this->name
;
32
}
33
34
public
function
setName
(
$name
)
35
{
36
$this->name =
$name
;
37
}
38
39
public
function
getValue
()
40
{
41
return
$this->value
;
42
}
43
44
public
function
setValue
(
$value
)
45
{
46
$this->value =
$value
;
47
}
48
49
public
function
toArray
()
50
{
51
return
[$this->name =>
$this->value
];
52
}
53
}
Bitrix\Main\Web\DOM\Attr
Определения
attr.php:6
Bitrix\Main\Web\DOM\Attr\$value
$value
Определения
attr.php:12
Bitrix\Main\Web\DOM\Attr\setName
setName($name)
Определения
attr.php:34
Bitrix\Main\Web\DOM\Attr\getName
getName()
Определения
attr.php:29
Bitrix\Main\Web\DOM\Attr\toString
toString()
Определения
attr.php:24
Bitrix\Main\Web\DOM\Attr\toArray
toArray()
Определения
attr.php:49
Bitrix\Main\Web\DOM\Attr\setValue
setValue($value)
Определения
attr.php:44
Bitrix\Main\Web\DOM\Attr\$name
$name
Определения
attr.php:10
Bitrix\Main\Web\DOM\Attr\getValue
getValue()
Определения
attr.php:39
Bitrix\Main\Web\DOM\Attr\__construct
__construct($name, $value)
Определения
attr.php:14
Bitrix\Main\Web\DOM\Node
Определения
node.php:5
Bitrix\Main\Web\DOM
Определения
attr.php:3
bitrix
modules
main
lib
web
dom
attr.php
Создано системой
1.14.0