Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
addresult.php
1<?php
10
11class 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}