Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс 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 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=[])
 

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

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

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

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

Методы

◆ addContextToUrl()

static addContextToUrl (   $url,
  $context 
)
static

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

◆ addLiveComment()

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

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

◆ addLiveSourceComment()

static addLiveSourceComment ( array  $params = [])
static

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

◆ canAddComment()

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

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

◆ checkBlogPostDestinationList()

static checkBlogPostDestinationList (   $params,
$resultFields 
)
static

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

◆ checkCanCommentInWorkgroup()

static checkCanCommentInWorkgroup (   $params)
static

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

◆ checkEmptyParamInteger()

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

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

◆ checkEmptyParamString()

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

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

◆ checkLivefeedTasksAllowed()

static checkLivefeedTasksAllowed ( )
static

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

◆ checkPredefinedAuthIdList()

static checkPredefinedAuthIdList (   $authIdList = array())
static

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

◆ checkProfileRedirect()

static checkProfileRedirect (   $userId = 0)
static

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

◆ checkTooltipComponentParams()

static checkTooltipComponentParams (   $params)
static

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

◆ convertBlogPostPermToDestinationList()

static convertBlogPostPermToDestinationList (   $params,
$resultFields 
)
static

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

◆ convertDiskFileBBCode()

static 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 строка 846

◆ convertMailDiskFileBBCode()

static 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 строка 787

◆ convertSelectorRequestData()

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

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

◆ createUserBlog()

static 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 строка 1064

◆ fillSelectedUsersToInvite()

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

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

◆ formatDateTimeToGMT()

static 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 строка 967

◆ getAllowToAllDestination()

static getAllowToAllDestination (   $userId = 0)
static

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

◆ getAttachmentsData()

static 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 строка 612

◆ getBlogAuthorData()

static 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 строка 242

◆ getBlogCommentData()

static 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 строка 412

◆ getBlogCommentListCount()

static getBlogCommentListCount (   $postId)
static

Returns a number of blog post comments

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

LoaderException

Исключения
Main

SystemException

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

◆ getBlogCommentListData()

static 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 строка 303

◆ getBlogPostCacheDir()

static getBlogPostCacheDir (   $params = array())
static

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

◆ getBlogPostData()

static 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 строка 48

◆ getBlogPostDestinations()

static getBlogPostDestinations (   $postId)
static

Returns data of blog post destinations

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

LoaderException

Исключения
Main

SystemException

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

◆ getBlogPostLimitedViewStatus()

static getBlogPostLimitedViewStatus (   $params = array())
static

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

◆ getBlogPostSocNetPerms()

static getBlogPostSocNetPerms (   $params = array())
static

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

◆ getEmailUserIdList()

static getEmailUserIdList ( )
static

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

◆ getExtranetSonetGroupIdList()

static getExtranetSonetGroupIdList ( )
static

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

◆ getExtranetUserIdList()

static getExtranetUserIdList ( )
static

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

◆ getLFCommentsParams()

static getLFCommentsParams (   $eventFields = array())
static

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

◆ getLivefeedRatingData()

static getLivefeedRatingData (   $params = [])
static

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

◆ getLivefeedStepper()

static getLivefeedStepper ( )
static

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

◆ getModuleUsed()

static getModuleUsed ( )
static

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

◆ getReplyToUrl()

static 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 строка 561

◆ getSonetBlogGroupIdList()

static getSonetBlogGroupIdList (   $params)
static

Returns (non-idea) blog group list

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

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

◆ getSonetGroupAvailable()

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

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

◆ getUrlContext()

static getUrlContext ( )
static

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

◆ getUrlPreviewContent()

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

Returns rendered url preview block

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

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

◆ getUrlPreviewValue()

static getUrlPreviewValue (   $text,
  $html = true 
)
static

get urlPreview property value from text with links

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

ArgumentTypeException

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

◆ getUserSEFUrl()

static getUserSEFUrl (   $params = array())
static

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

◆ getUserSonetGroupIdList()

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

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

◆ getWorkgroupAvatarToken()

static getWorkgroupAvatarToken (   $fileId = 0)
static

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

◆ getWorkgroupPageTitle()

static getWorkgroupPageTitle ( array  $params = [])
static

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

◆ getWorkgroupSEFUrl()

static getWorkgroupSEFUrl (   $params = [])
static

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

◆ getWorkgroupSliderMenuSignedParameters()

static getWorkgroupSliderMenuSignedParameters ( array  $params)
static

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

◆ getWorkgroupSliderMenuSignedParametersSalt()

static getWorkgroupSliderMenuSignedParametersSalt ( )
static

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

◆ getWorkgroupSliderMenuUnsignedParameters()

static getWorkgroupSliderMenuUnsignedParameters ( array  $sourceParametersList = [])
static

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

◆ getWorkgroupSliderMenuUrlList()

static getWorkgroupSliderMenuUrlList ( array  $componentResult = [])
static

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

◆ hasCommentSource()

static hasCommentSource (   $params)
static

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

◆ hasTextInlineImage()

static 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 строка 910

◆ isCurrentPageFirst()

static isCurrentPageFirst ( array  $params = [])
static

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

◆ isCurrentUserExtranet()

static isCurrentUserExtranet (   $params = [])
static

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

◆ listWorkgroupSliderMenuSignedParameters()

static listWorkgroupSliderMenuSignedParameters ( array  $componentParameters = [])
static

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

◆ notifyBlogPostCreated()

static notifyBlogPostCreated (   $params = array())
static

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

◆ processBlogPostNewCrmContact()

static processBlogPostNewCrmContact ( $HTTPPost,
$componentResult 
)
static

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

◆ processBlogPostNewMailUser()

static processBlogPostNewMailUser ( $HTTPPost,
$componentResult 
)
static

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

◆ processBlogPostNewMailUserDestinations()

static processBlogPostNewMailUserDestinations ( $destinationList)
static

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

◆ processBlogPostShare()

static processBlogPostShare (   $fields,
  $params 
)
static

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

◆ setBlogPostLimitedViewStatus()

static setBlogPostLimitedViewStatus (   $params = array())
static

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

◆ setComponentOption()

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

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

◆ setModuleUsed()

static setModuleUsed ( )
static

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

◆ userLogSubscribe()

static userLogSubscribe (   $params = array())
static

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

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

◆ $authorsCache

$authorsCache = []
staticprotected

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

◆ $commentCountCache

$commentCountCache = []
staticprotected

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

◆ $commentListsCache

$commentListsCache = []
staticprotected

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

◆ $commentsCache

$commentsCache = []
staticprotected

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

◆ $destinationsCache

$destinationsCache = []
staticprotected

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

◆ $postsCache

$postsCache = []
staticprotected

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