Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Comment
+ Граф наследования:Comment:

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

 add (Container $container, array $fields)
 
 update ($commentId, array $fields)
 
 getFields (Container $container, $entityId)
 
 prepareFieldsToCopy (Container $container, array $fields)
 
 copyChildren (Container $container, $entityId, $copiedEntityId)
 
 updateAttachedIdsInText (int $id, array $attachedIds, callable $auxiliaryCallback)
 
- Открытые члены унаследованные от CopyImplementer
 __construct ()
 
 getErrors ()
 
 setUserFieldManager (\CUserTypeManager $userTypeManager)
 
 setUfIgnoreList (array $ufIgnoreList)
 
 setExecutiveUserId (int $executiveUserId)
 

Открытые атрибуты

const COMMENT_COPY_ERROR = "COMMENT_COPY_ERROR"
 

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

 getText ($commentId)
 
- Защищенные члены унаследованные от CopyImplementer
 copyUfFields (int $entityId, int $copiedEntityId, string $ufObject)
 
 getResult (array $results=[])
 

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

 $ufEntityObject = "FORUM_MESSAGE"
 
 $ufDiskFileField = "UF_FORUM_MESSAGE_DOC"
 
- Защищенные данные унаследованные от CopyImplementer
 $result
 
 $userTypeManager
 
 $ufIgnoreList = []
 
 $executiveUserId
 

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

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

Методы

◆ add()

add ( Container $container,
array $fields )
Аргументы
Container$container
array$fields
Возвращает
int message id.

Переопределяет метод предка CopyImplementer.

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

◆ copyChildren()

copyChildren ( Container $container,
$entityId,
$copiedEntityId )

Starts copying children entities.

Аргументы
Container$container
int$entityIdEntity id.
int$copiedEntityIdCopied entity id.
Возвращает
Result

Переопределяет метод предка CopyImplementer.

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

◆ getFields()

getFields ( Container $container,
$entityId )

Returns entity fields.

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

Переопределяет метод предка CopyImplementer.

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

◆ getText()

getText ( $commentId)
protected

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

◆ prepareFieldsToCopy()

prepareFieldsToCopy ( Container $container,
array $fields )

Preparing data before creating a new entity.

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

Переопределяет метод предка CopyImplementer.

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

◆ update()

update ( $commentId,
array $fields )

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

◆ updateAttachedIdsInText()

updateAttachedIdsInText ( int $id,
array $attachedIds,
callable $auxiliaryCallback )

Updates identifiers who's added to text.

Аргументы
int$idId of the entity whose text will be updated.
array$attachedIds
callable$auxiliaryCallback

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

Данные класса

◆ $ufDiskFileField

$ufDiskFileField = "UF_FORUM_MESSAGE_DOC"
protected

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

◆ $ufEntityObject

$ufEntityObject = "FORUM_MESSAGE"
protected

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

◆ COMMENT_COPY_ERROR

const COMMENT_COPY_ERROR = "COMMENT_COPY_ERROR"

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