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

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

 setBlogCommentCopier (EntityCopier $blogCommentCopier)
 
 setFeatures (array $features)
 
 setChangedRights ($changedRights)
 
 add (Container $container, array $fields)
 
 update ($blogPostId, array $fields)
 
 getFields (Container $container, $entityId)
 
 prepareFieldsToCopy (Container $container, array $fields)
 
 copyChildren (Container $container, $entityId, $copiedEntityId)
 
 copyVote (int $voteId)
 
- Открытые члены унаследованные от Base
 updateAttachedIdsInText (int $id, array $attachedIds, callable $callback)
 
- Открытые члены унаследованные от CopyImplementer
 __construct ()
 
 getErrors ()
 
 setUserFieldManager (\CUserTypeManager $userTypeManager)
 
 setUfIgnoreList (array $ufIgnoreList)
 
 setExecutiveUserId (int $executiveUserId)
 

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

const BLOG_POST_COPY_ERROR = "BLOG_POST_COPY_ERROR"
 

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

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

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

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

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

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

Методы

◆ add()

add ( Container $container,
array $fields )

Adds entity.

Аргументы
Container$container
array$fields
Возвращает
int|bool Added entity id or false.

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

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

◆ copyChildren()

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

Starts copying children entities.

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

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

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

◆ copyVote()

copyVote ( int $voteId)

Copies vote.

Аргументы
int$voteIdVote id.
Возвращает
int copied vote id.

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

◆ getFields()

getFields ( Container $container,
$entityId )

Returns entity fields.

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

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

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

◆ getText()

getText ( $blogPostId)
protected

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

◆ prepareFieldsToCopy()

prepareFieldsToCopy ( Container $container,
array $fields )

Preparing data before creating a new BlogPost.

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

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

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

◆ setBlogCommentCopier()

setBlogCommentCopier ( EntityCopier $blogCommentCopier)

To copy comments needs comment copier.

Аргументы
EntityCopier$blogCommentCopierComment copier.

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

◆ setChangedRights()

setChangedRights ( $changedRights)

To overwrite access rights to a post in a new entity, you need to specify the identifier of the new entity.

Аргументы
array$changedRightsRation changed id.

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

◆ setFeatures()

setFeatures ( array $features)

Writes features to the copy queue.

Аргументы
array$featuresList features.

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

◆ update()

update ( $id,
array $fields )

Updates entity.

Аргументы
int$entityIdEntity id.
array$fieldsList entity fields.
Возвращает
bool
Аргументы
$id
array$fields
Возвращает
\Bitrix\Main\ORM\Data\UpdateResult|null
Исключения
NotImplementedException
SystemException

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

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

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

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

◆ $ufDiskFileField

$ufDiskFileField = "UF_BLOG_POST_FILE"
protected

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

◆ $ufEntityObject

$ufEntityObject = "BLOG_POST"
protected

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

◆ BLOG_POST_COPY_ERROR

const BLOG_POST_COPY_ERROR = "BLOG_POST_COPY_ERROR"

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