Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
entity.php
1<?php
2
3
5
6
8
9abstract class Entity
10{
11 protected $fields;
12
13 public function __construct(array $values = null)
14 {
15 $this->fields = new Fields($values);
16 }
17
18 public function getId()
19 {
20 return $this->fields->get('ID');
21 }
22 public function setId($value)
23 {
24 $this->fields->set('ID', $value);
25 return $this;
26 }
27
28 public function getFieldsValues()
29 {
30 return $this->fields->getValues();
31 }
32
33 abstract static public function createFromArray(array $fields);
34}