См. определение в файле copyimplementer.php строка 10
◆ __construct()
◆ add()
Adds entity.
- Аргументы
-
Container | $container | |
array | $fields | |
- Возвращает
- int|bool return entity id or false.
Переопределяется в BlogComment, BlogPost, Comment, Topic, Element, Iblock, Section, Landing, Iblock, Group, UserToGroup, Answer, Question и Vote.
◆ copyChildren()
copyChildren |
( |
Container | $container, |
|
|
| $entityId, |
|
|
| $copiedEntityId ) |
|
abstract |
Starts copying children entities.
- Аргументы
-
Container | $container | |
int | $entityId | Entity id. |
int | $copiedEntityId | Copied entity id. |
- Возвращает
- Result
Переопределяется в Element, BlogComment, BlogPost, Comment, Iblock, UserToGroup, Answer, Question, Vote, Group, Iblock, Landing, Section и Topic.
◆ copyUfFields()
copyUfFields |
( |
int | $entityId, |
|
|
int | $copiedEntityId, |
|
|
string | $ufObject ) |
|
protected |
◆ getErrors()
◆ getFields()
getFields |
( |
Container | $container, |
|
|
| $entityId ) |
|
abstract |
Returns entity fields.
- Аргументы
-
Container | $container | |
int | $entityId | |
- Возвращает
- array $fields
Переопределяется в BlogComment, BlogPost, Comment, Topic, Element, Iblock, Section, Group, UserToGroup, Answer, Question, Vote и Landing.
◆ getResult()
getResult |
( |
array | $results = [] | ) |
|
|
protected |
◆ prepareFieldsToCopy()
prepareFieldsToCopy |
( |
Container | $container, |
|
|
array | $fields ) |
|
abstract |
Preparing data before creating a new entity.
- Аргументы
-
Container | $container | |
array | $fields | List entity fields. |
- Возвращает
- array $fields
Переопределяется в BlogComment, BlogPost, Comment, Topic, Iblock, Section, Landing, Group, UserToGroup, Answer, Question, Vote и Element.
◆ setExecutiveUserId()
setExecutiveUserId |
( |
int | $executiveUserId | ) |
|
◆ setUfIgnoreList()
setUfIgnoreList |
( |
array | $ufIgnoreList | ) |
|
To avoid copying specific fields, specify a list of fields to ignore.
- Аргументы
-
array | $ufIgnoreList | Ignore list. |
См. определение в файле copyimplementer.php строка 52
◆ setUserFieldManager()
setUserFieldManager |
( |
\CUserTypeManager | $userTypeManager | ) |
|
To copy uf fields, you must pass the uf field manager.
- Аргументы
-
\CUserTypeManager | $userTypeManager | Uf fields. |
См. определение в файле copyimplementer.php строка 42
◆ $executiveUserId
◆ $result
◆ $ufIgnoreList
◆ $userTypeManager