src/Models/SectionModel.php 1 location
|
@@ 124-131 (lines=8) @@
|
121 |
|
* |
122 |
|
* @return static|bool |
123 |
|
*/ |
124 |
|
public static function create($fields) |
125 |
|
{ |
126 |
|
if (!isset($fields['IBLOCK_ID'])) { |
127 |
|
$fields['IBLOCK_ID'] = static::iblockId(); |
128 |
|
} |
129 |
|
|
130 |
|
return static::internalCreate($fields); |
131 |
|
} |
132 |
|
|
133 |
|
/** |
134 |
|
* Get IDs of direct children of the section. |
src/Models/ElementModel.php 1 location
|
@@ 137-144 (lines=8) @@
|
134 |
|
* @return static|bool |
135 |
|
* @throws ExceptionFromBitrix |
136 |
|
*/ |
137 |
|
public static function create($fields) |
138 |
|
{ |
139 |
|
if (!isset($fields['IBLOCK_ID'])) { |
140 |
|
$fields['IBLOCK_ID'] = static::iblockId(); |
141 |
|
} |
142 |
|
|
143 |
|
return static::internalCreate($fields); |
144 |
|
} |
145 |
|
|
146 |
|
public static function internalDirectCreate($bxObject, $fields) |
147 |
|
{ |