Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
addresult.php
1
<?php
9
namespace
Bitrix\Main\ORM\Data
;
10
11
class
AddResult
extends
Result
12
{
14
protected
$primary
;
15
16
public
function
__construct
()
17
{
18
parent::__construct();
19
}
20
21
public
function
setId
($id)
22
{
23
$this->primary = array(
'ID'
=> $id);
24
}
25
30
public
function
getId
()
31
{
32
if
(is_array($this->primary) && count($this->primary) == 1)
33
{
34
return
end($this->primary);
35
}
36
37
return
$this->primary
;
38
}
39
43
public
function
setPrimary
(
$primary
)
44
{
45
$this->primary =
$primary
;
46
}
47
51
public
function
getPrimary
()
52
{
53
return
$this->primary
;
54
}
55
}
Bitrix\Main\ORM\Data\AddResult
Definition
addresult.php:12
Bitrix\Main\ORM\Data\AddResult\$primary
$primary
Definition
addresult.php:14
Bitrix\Main\ORM\Data\AddResult\__construct
__construct()
Definition
addresult.php:16
Bitrix\Main\ORM\Data\AddResult\setPrimary
setPrimary($primary)
Definition
addresult.php:43
Bitrix\Main\ORM\Data\AddResult\getId
getId()
Definition
addresult.php:30
Bitrix\Main\ORM\Data\AddResult\setId
setId($id)
Definition
addresult.php:21
Bitrix\Main\ORM\Data\AddResult\getPrimary
getPrimary()
Definition
addresult.php:51
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\ORM\Data
Definition
addresult.php:9
modules
main
lib
orm
data
addresult.php
Создано системой
1.10.0