Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblock.php
1<?php
9namespace Bitrix\Iblock;
10
12
17class Iblock extends EO_Iblock
18{
19 public function getEntityDataClassName()
20 {
21 $code = $this->fillApiCode();
22
23 if($code <> '')
24 {
25 return IblockTable::DATA_CLASS_PREFIX.ucfirst($code).'Table';
26 }
27 }
28
32 public function getEntityDataClass()
33 {
34 $className = $this->getEntityDataClassName();
35
36 if($className <> '')
37 {
38 return '\\'.IblockTable::DATA_CLASS_NAMESPACE.'\\'.$className;
39 }
40
41 trigger_error('API_CODE required for DataClass of iblock #'.$this->getId(), E_USER_WARNING);
42 }
43}