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