1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ComponentHelper

Открытые статические члены

static getBlogPostData ($postId, $languageId)
static getBlogPostDestinations ($postId)
static getBlogAuthorData ($authorId, $params)
static getBlogCommentListData ($postId, $params, $languageId, &$authorIdList=[])
static getBlogCommentListCount ($postId)
static getBlogCommentData ($commentId, $languageId)
static getReplyToUrl ($url, $userId, $entityType, $entityId, $siteId, $backUrl=null)
static getAttachmentsData ($valueList, $siteId=false)
static convertMailDiskFileBBCode ($text='', $attachmentList=[])
static convertDiskFileBBCode ($text, $entityType, $entityId, $authorId, $attachmentList=[])
static hasTextInlineImage (string $text='', array $ufData=[])
static formatDateTimeToGMT ($dateTimeSource, $authorId)
static getSonetBlogGroupIdList ($params)
static createUserBlog ($params)
static getUrlPreviewValue ($text, $html=true)
static getUrlPreviewContent ($uf, $params=array())
static getExtranetUserIdList ()
static getEmailUserIdList ()
static getExtranetSonetGroupIdList ()
static hasCommentSource ($params)
static processBlogPostShare ($fields, $params)
static getUrlContext ()
static addContextToUrl ($url, $context)
static checkPredefinedAuthIdList ($authIdList=array())
static setModuleUsed ()
static getModuleUsed ()
static setComponentOption ($list, $params=array())
static getSonetGroupAvailable ($params=array(), &$limitReached=false)
static canAddComment ($logEntry=array(), $commentEvent=array())
static addLiveComment ($comment=[], $logEntry=[], $commentEvent=[], $params=[])
static addLiveSourceComment (array $params=[])
static fillSelectedUsersToInvite ($HTTPPost, $componentParams, &$componentResult)
static processBlogPostNewMailUser (&$HTTPPost, &$componentResult)
static processBlogPostNewMailUserDestinations (&$destinationList)
static processBlogPostNewCrmContact (&$HTTPPost, &$componentResult)
static getUserSonetGroupIdList ($userId=false, $siteId=false)
static getAllowToAllDestination ($userId=0)
static getLivefeedStepper ()
static checkProfileRedirect ($userId=0)
static getBlogPostLimitedViewStatus ($params=array())
static setBlogPostLimitedViewStatus ($params=array())
static getBlogPostSocNetPerms ($params=array())
static notifyBlogPostCreated ($params=array())
static getUserSEFUrl ($params=array())
static getWorkgroupSEFUrl ($params=[])
static getSpacesSEFUrl ($params=[])
static convertBlogPostPermToDestinationList ($params, &$resultFields)
static checkBlogPostDestinationList ($params, &$resultFields)
static getBlogPostCacheDir ($params=array())
static getLivefeedRatingData ($params=[])
static isCurrentUserExtranet ($params=[])
static userLogSubscribe ($params=array())
static getLFCommentsParams ($eventFields=array())
static checkCanCommentInWorkgroup ($params)
static checkLivefeedTasksAllowed ()
static convertSelectorRequestData (array &$postFields=[], array $params=[])
static isCurrentPageFirst (array $params=[])
static getWorkgroupSliderMenuUrlList (array $componentResult=[])
static listWorkgroupSliderMenuSignedParameters (array $componentParameters=[])
static getWorkgroupSliderMenuSignedParameters (array $params)
static getWorkgroupSliderMenuUnsignedParameters (array $sourceParametersList=[])
static getWorkgroupSliderMenuSignedParametersSalt ()
static getWorkgroupAvatarToken ($fileId=0)
static checkEmptyParamInteger (&$params, $paramName, $defaultValue)
static checkEmptyParamString (&$params, $paramName, $defaultValue)
static checkTooltipComponentParams ($params)
static getWorkgroupPageTitle (array $params=[])

Поля данных

const MAIN_SELECTOR_GROUPS_CACHE_TAG = 'sonet_main_selector_groups'

Статические защищенные данные

static $postsCache = []
static $commentsCache = []
static $commentListsCache = []
static $commentCountCache = []
static $authorsCache = []
static $destinationsCache = []

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

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

Методы

◆ addContextToUrl()

addContextToUrl ( $url,
$context )
static

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

◆ addLiveComment()

addLiveComment ( $comment = [],
$logEntry = [],
$commentEvent = [],
$params = [] )
static

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

◆ addLiveSourceComment()

addLiveSourceComment ( array $params = [])
static

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

◆ canAddComment()

canAddComment ( $logEntry = array(),
$commentEvent = array() )
static

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

◆ checkBlogPostDestinationList()

checkBlogPostDestinationList ( $params,
& $resultFields )
static

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

◆ checkCanCommentInWorkgroup()

checkCanCommentInWorkgroup ( $params)
static

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

◆ checkEmptyParamInteger()

checkEmptyParamInteger ( & $params,
$paramName,
$defaultValue )
static

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

◆ checkEmptyParamString()

checkEmptyParamString ( & $params,
$paramName,
$defaultValue )
static

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

◆ checkLivefeedTasksAllowed()

checkLivefeedTasksAllowed ( )
static

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

◆ checkPredefinedAuthIdList()

checkPredefinedAuthIdList ( $authIdList = array())
static

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

◆ checkProfileRedirect()

checkProfileRedirect ( $userId = 0)
static

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

◆ checkTooltipComponentParams()

checkTooltipComponentParams ( $params)
static

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

◆ convertBlogPostPermToDestinationList()

convertBlogPostPermToDestinationList ( $params,
& $resultFields )
static

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

◆ convertDiskFileBBCode()

convertDiskFileBBCode ( $text,
$entityType,
$entityId,
$authorId,
$attachmentList = [] )
static

Converts DISK FILE BB-code to the pseudo-BB code MAIL DISK FILE or IMG BB-code

Аргументы
string$textText to convert.
string$entityTypeEntity Type.
int$entityIdEntity Type.
int$authorIdUser id.
array$attachmentListAttachments List.
Возвращает
mixed

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

◆ convertMailDiskFileBBCode()

convertMailDiskFileBBCode ( $text = '',
$attachmentList = [] )
static

Converts formatted text replacing pseudo-BB code MAIL DISK, using calculated URLs

Аргументы
string$textText to convert.
array$attachmentListAttachments List.
Возвращает
mixed|string

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

◆ convertSelectorRequestData()

convertSelectorRequestData ( array & $postFields = [],
array $params = [] )
static

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

◆ createUserBlog()

createUserBlog ( $params)
static

Creates a user blog (when it is the first post of the user)

Аргументы
array$paramsParameters.
Возвращает
bool|array
Исключения
Main

ArgumentException

Исключения
Main

LoaderException

Исключения
Main

SystemException

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

◆ fillSelectedUsersToInvite()

fillSelectedUsersToInvite ( $HTTPPost,
$componentParams,
& $componentResult )
static

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

◆ formatDateTimeToGMT()

formatDateTimeToGMT ( $dateTimeSource,
$authorId )
static

Formsts date time to the value of author + GMT offset

Аргументы
string$dateTimeSourceDate/Time in site format.
int$authorIdUser Id.
Возвращает
string

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

◆ getAllowToAllDestination()

getAllowToAllDestination ( $userId = 0)
static

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

◆ getAttachmentsData()

getAttachmentsData ( $valueList,
$siteId = false )
static

Returns data of attached files

Аргументы
array$valueListAttachments List.
string | bool | false$siteIdSite Id (2-chars).
Возвращает
array
Исключения
Main

LoaderException

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

◆ getBlogAuthorData()

getBlogAuthorData ( $authorId,
$params )
static

Returns data of a blog post/comment author

Аргументы
int$authorIdUser Id.
array$paramsFormat parameters (avatar size etc).
Возвращает
array
Исключения
Main

LoaderException

Исключения
Main

SystemException

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

◆ getBlogCommentData()

getBlogCommentData ( $commentId,
$languageId )
static

Returns data of a blog comment

Аргументы
int$commentIdComment Id.
string$languageIdLanguage id (2-chars).
Возвращает
array|bool|false|mixed|null

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

◆ getBlogCommentListCount()

getBlogCommentListCount ( $postId)
static

Returns a number of blog post comments

Аргументы
int$postIdBlog Post Id.
Возвращает
bool|int
Исключения
Main

LoaderException

Исключения
Main

SystemException

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

◆ getBlogCommentListData()

getBlogCommentListData ( $postId,
$params,
$languageId,
& $authorIdList = [] )
static

Returns full list of blog post comments

Аргументы
int$postIdBlog Post Id.
array$paramsAdditional paramaters.
string$languageIdLanguage Id (2-char).
array&$authorIdListList of User Ids.
Возвращает
array
Исключения
Main

LoaderException

Исключения
Main

SystemException

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

◆ getBlogPostCacheDir()

getBlogPostCacheDir ( $params = array())
static

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

◆ getBlogPostData()

getBlogPostData ( $postId,
$languageId )
static

Returns data of a blog post

Аргументы
int$postIdBlog Post Id.
string$languageId2-char language Id.
Возвращает
array|bool|false|mixed|null
Исключения
Main

LoaderException

Исключения
Main

SystemException

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

◆ getBlogPostDestinations()

getBlogPostDestinations ( $postId)
static

Returns data of blog post destinations

Аргументы
int$postIdBlog Post Id.
Возвращает
array
Исключения
Main

LoaderException

Исключения
Main

SystemException

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

◆ getBlogPostLimitedViewStatus()

getBlogPostLimitedViewStatus ( $params = array())
static

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

◆ getBlogPostSocNetPerms()

getBlogPostSocNetPerms ( $params = array())
static

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

◆ getEmailUserIdList()

getEmailUserIdList ( )
static

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

◆ getExtranetSonetGroupIdList()

getExtranetSonetGroupIdList ( )
static

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

◆ getExtranetUserIdList()

getExtranetUserIdList ( )
static

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

◆ getLFCommentsParams()

getLFCommentsParams ( $eventFields = array())
static

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

◆ getLivefeedRatingData()

getLivefeedRatingData ( $params = [])
static

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

◆ getLivefeedStepper()

getLivefeedStepper ( )
static

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

◆ getModuleUsed()

getModuleUsed ( )
static

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

◆ getReplyToUrl()

getReplyToUrl ( $url,
$userId,
$entityType,
$entityId,
$siteId,
$backUrl = null )
static

Returns mail-hash url

Аргументы
string$urlEntity Link.
int$userIdUser Id.
string$entityTypeEntity Type.
int$entityIdEntity Id.
string$siteIdSite id (2-char).
Возвращает
bool|string
Исключения
Main

LoaderException

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

◆ getSonetBlogGroupIdList()

getSonetBlogGroupIdList ( $params)
static

Returns (non-idea) blog group list

Аргументы
array$paramsParameters.
Возвращает
array

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

◆ getSonetGroupAvailable()

getSonetGroupAvailable ( $params = array(),
& $limitReached = false )
static

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

◆ getSpacesSEFUrl()

getSpacesSEFUrl ( $params = [])
static

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

◆ getUrlContext()

getUrlContext ( )
static

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

◆ getUrlPreviewContent()

getUrlPreviewContent ( $uf,
$params = array() )
static

Returns rendered url preview block

Аргументы
array$uf
array$params
Возвращает
string|boolean

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

◆ getUrlPreviewValue()

getUrlPreviewValue ( $text,
$html = true )
static

get urlPreview property value from text with links

Аргументы
$textstring
bool | true$html
Возвращает
bool|string
Исключения
Main

ArgumentTypeException

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

◆ getUserSEFUrl()

getUserSEFUrl ( $params = array())
static

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

◆ getUserSonetGroupIdList()

getUserSonetGroupIdList ( $userId = false,
$siteId = false )
static

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

◆ getWorkgroupAvatarToken()

getWorkgroupAvatarToken ( $fileId = 0)
static

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

◆ getWorkgroupPageTitle()

getWorkgroupPageTitle ( array $params = [])
static

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

◆ getWorkgroupSEFUrl()

getWorkgroupSEFUrl ( $params = [])
static

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

◆ getWorkgroupSliderMenuSignedParameters()

getWorkgroupSliderMenuSignedParameters ( array $params)
static

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

◆ getWorkgroupSliderMenuSignedParametersSalt()

getWorkgroupSliderMenuSignedParametersSalt ( )
static

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

◆ getWorkgroupSliderMenuUnsignedParameters()

getWorkgroupSliderMenuUnsignedParameters ( array $sourceParametersList = [])
static

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

◆ getWorkgroupSliderMenuUrlList()

getWorkgroupSliderMenuUrlList ( array $componentResult = [])
static

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

◆ hasCommentSource()

hasCommentSource ( $params)
static

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

◆ hasTextInlineImage()

hasTextInlineImage ( string $text = '',
array $ufData = [] )
static

Calculates if text has inline disk file images

Аргументы
string$texttext with BB-codes
array$ufDatauf of disk type.
Возвращает
boolean

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

◆ isCurrentPageFirst()

isCurrentPageFirst ( array $params = [])
static

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

◆ isCurrentUserExtranet()

isCurrentUserExtranet ( $params = [])
static

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

◆ listWorkgroupSliderMenuSignedParameters()

listWorkgroupSliderMenuSignedParameters ( array $componentParameters = [])
static

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

◆ notifyBlogPostCreated()

notifyBlogPostCreated ( $params = array())
static

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

◆ processBlogPostNewCrmContact()

processBlogPostNewCrmContact ( & $HTTPPost,
& $componentResult )
static

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

◆ processBlogPostNewMailUser()

processBlogPostNewMailUser ( & $HTTPPost,
& $componentResult )
static

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

◆ processBlogPostNewMailUserDestinations()

processBlogPostNewMailUserDestinations ( & $destinationList)
static

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

◆ processBlogPostShare()

processBlogPostShare ( $fields,
$params )
static

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

◆ setBlogPostLimitedViewStatus()

setBlogPostLimitedViewStatus ( $params = array())
static

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

◆ setComponentOption()

setComponentOption ( $list,
$params = array() )
static

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

◆ setModuleUsed()

setModuleUsed ( )
static

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

◆ userLogSubscribe()

userLogSubscribe ( $params = array())
static

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

Поля

◆ $authorsCache

$authorsCache = []
staticprotected

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

◆ $commentCountCache

$commentCountCache = []
staticprotected

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

◆ $commentListsCache

$commentListsCache = []
staticprotected

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

◆ $commentsCache

$commentsCache = []
staticprotected

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

◆ $destinationsCache

$destinationsCache = []
staticprotected

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

◆ $postsCache

$postsCache = []
staticprotected

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

◆ MAIN_SELECTOR_GROUPS_CACHE_TAG

const MAIN_SELECTOR_GROUPS_CACHE_TAG = 'sonet_main_selector_groups'

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


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