1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CopyImplementer
Граф наследования:CopyImplementer:
Base Comment Topic Element Iblock Section Landing Group UserToGroup Answer Question Vote

Открытые члены

 __construct ()
 getErrors ()
 setUserFieldManager (\CUserTypeManager $userTypeManager)
 setUfIgnoreList (array $ufIgnoreList)
 setExecutiveUserId (int $executiveUserId)
 add (Container $container, array $fields)
 getFields (Container $container, $entityId)
 prepareFieldsToCopy (Container $container, array $fields)
 copyChildren (Container $container, $entityId, $copiedEntityId)

Защищенные члены

 copyUfFields (int $entityId, int $copiedEntityId, string $ufObject)
 getResult (array $results=[])

Защищенные данные

 $result
 $userTypeManager
 $ufIgnoreList = []
 $executiveUserId

Подробное описание

См. определение в файле copyimplementer.php строка 10

Конструктор(ы)

◆ __construct()

__construct ( )

Переопределяется в Landing.

См. определение в файле copyimplementer.php строка 24

Методы

◆ add()

add ( Container $container,
array $fields )
abstract

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$entityIdEntity id.
int$copiedEntityIdCopied entity id.
Возвращает
Result

Переопределяется в BlogComment, BlogPost, Comment, Topic, Element, Iblock, Section, Landing, Iblock, Group, UserToGroup, Answer, Question и Vote.

◆ copyUfFields()

copyUfFields ( int $entityId,
int $copiedEntityId,
string $ufObject )
protected

См. определение в файле copyimplementer.php строка 67

◆ getErrors()

getErrors ( )
Возвращает
\Bitrix\Main\Error[]

См. определение в файле copyimplementer.php строка 32

◆ getFields()

getFields ( Container $container,
$entityId )
abstract

Returns entity fields.

Аргументы
Container$container
int$entityId
Возвращает
array $fields

Переопределяется в BlogComment, BlogPost, Comment, Topic, Element, Iblock, Section, Landing, Group, UserToGroup, Answer, Question и Vote.

◆ getResult()

getResult ( array $results = [])
protected
Аргументы
Result[]$results
Возвращает
Result

См. определение в файле copyimplementer.php строка 119

◆ prepareFieldsToCopy()

prepareFieldsToCopy ( Container $container,
array $fields )
abstract

Preparing data before creating a new entity.

Аргументы
Container$container
array$fieldsList entity fields.
Возвращает
array $fields

Переопределяется в BlogComment, BlogPost, Comment, Topic, Element, Iblock, Section, Landing, Group, UserToGroup, Answer, Question и Vote.

◆ setExecutiveUserId()

setExecutiveUserId ( int $executiveUserId)

To copy on agent need user id.

Аргументы
int$executiveUserId

См. определение в файле copyimplementer.php строка 62

◆ setUfIgnoreList()

setUfIgnoreList ( array $ufIgnoreList)

To avoid copying specific fields, specify a list of fields to ignore.

Аргументы
array$ufIgnoreListIgnore list.

См. определение в файле copyimplementer.php строка 52

◆ setUserFieldManager()

setUserFieldManager ( \CUserTypeManager $userTypeManager)

To copy uf fields, you must pass the uf field manager.

Аргументы
\CUserTypeManager$userTypeManagerUf fields.

См. определение в файле copyimplementer.php строка 42

Поля

◆ $executiveUserId

$executiveUserId
protected

См. определение в файле copyimplementer.php строка 22

◆ $result

$result
protected

См. определение в файле copyimplementer.php строка 15

◆ $ufIgnoreList

$ufIgnoreList = []
protected

См. определение в файле copyimplementer.php строка 21

◆ $userTypeManager

$userTypeManager
protected

См. определение в файле copyimplementer.php строка 20


Объявления и описания членов класса находятся в файле: