Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
updateresult.php
1
<?php
9
namespace
Bitrix\Main\ORM\Data
;
10
11
use
Bitrix\Main\DB\Connection
;
12
13
class
UpdateResult
extends
Result
14
{
16
protected
$affectedRowsCount
;
17
19
protected
$primary
;
20
21
public
function
__construct
()
22
{
23
parent::__construct();
24
}
25
26
public
function
setAffectedRowsCount
(
Connection
$connection)
27
{
28
$this->affectedRowsCount = $connection->
getAffectedRowsCount
();
29
}
30
34
public
function
getAffectedRowsCount
()
35
{
36
return
$this->affectedRowsCount
;
37
}
38
39
public
function
setPrimary
(
$primary
)
40
{
41
$this->primary =
$primary
;
42
}
43
47
public
function
getPrimary
()
48
{
49
return
$this->primary
;
50
}
51
56
public
function
getId
()
57
{
58
if
(count($this->primary) == 1)
59
{
60
return
end($this->primary);
61
}
62
63
return
$this->primary
;
64
}
65
}
Bitrix\Main\DB\Connection
Definition
connection.php:18
Bitrix\Main\DB\Connection\getAffectedRowsCount
getAffectedRowsCount()
Bitrix\Main\Data\Connection
Definition
connection.php:17
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\ORM\Data\UpdateResult
Definition
updateresult.php:14
Bitrix\Main\ORM\Data\UpdateResult\$primary
$primary
Definition
updateresult.php:19
Bitrix\Main\ORM\Data\UpdateResult\__construct
__construct()
Definition
updateresult.php:21
Bitrix\Main\ORM\Data\UpdateResult\setPrimary
setPrimary($primary)
Definition
updateresult.php:39
Bitrix\Main\ORM\Data\UpdateResult\getId
getId()
Definition
updateresult.php:56
Bitrix\Main\ORM\Data\UpdateResult\setAffectedRowsCount
setAffectedRowsCount(Connection $connection)
Definition
updateresult.php:26
Bitrix\Main\ORM\Data\UpdateResult\$affectedRowsCount
$affectedRowsCount
Definition
updateresult.php:16
Bitrix\Main\ORM\Data\UpdateResult\getPrimary
getPrimary()
Definition
updateresult.php:47
Bitrix\Main\ORM\Data\UpdateResult\getAffectedRowsCount
getAffectedRowsCount()
Definition
updateresult.php:34
Bitrix\Main\ORM\Data
Definition
addresult.php:9
modules
main
lib
orm
data
updateresult.php
Создано системой
1.10.0