Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
updateresult.php
1<?php
10
12
13class UpdateResult extends Result
14{
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 {
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}
setAffectedRowsCount(Connection $connection)