UNA
Loading...
Searching...
No Matches
BxCnvCmts Class Reference
Inheritance diagram for BxCnvCmts:
BxTemplCmts BxBaseCmts BxDolCmts BxDolFactory iBxDolReplaceable iBxDolContentInfoService

Public Member Functions

 __construct ($sSystem, $iId, $iInit=true, $oTemplate=false)
 
 getObjectTitle ($iObjectId=0)
 
 addCssJs ()
 
 isEnabled ()
 
 isRemoveAllowed ($aCmt, $isPerformAction=false)
 
 msgErrRemoveAllowed ()
 
 isEditAllowed ($aCmt, $isPerformAction=false)
 
 msgErrEditAllowed ()
 
 getCommentsBlock ($aBp=array(), $aDp=array())
 
 getCommentBlock ($iCmtId=0, $aBp=array(), $aDp=array())
 
- Public Member Functions inherited from BxBaseCmts
 getJsObjectName ()
 
 getJsScript ($aBp=[], $aDp=[])
 
 getCommentsBlockAPI ($aParams, $aBp=[], $aDp=['in_designbox'=> false, 'show_empty'=> false])
 
 getComments ($aBp=[], $aDp=[])
 
 getCommentsPinned ($aBp=[], $aDp=[])
 
 getCommentsByStructure ($aBp=array(), $aDp=array())
 
 getComment ($mixedCmt, $aBp=array(), $aDp=array())
 
 getCommentStructure ($iCmtId, $aBp=array(), $aDp=array())
 
 getCommentSearch ($iCmtId, &$sAddon)
 
 getCommentLiveSearch ($mixedCmt, $aParams=array())
 
 getFormBoxPost ($aBp=array(), $aDp=array())
 
 getFormBoxEdit ($aBp=array(), $aDp=array())
 
 getFormPost ($iCmtParentId=0, $aDp=array())
 
 getFormEdit ($iCmtId, $aDp=array())
 
 getControlsBox ()
 
 getLiveUpdate ($iCountOld=0, $iCountNew=0)
 
 getLiveUpdateButton ($iCommentId=0)
 
 getLiveUpdates ($iCountOld=0, $iCountNew=0)
 
 getElementBlock ($aParams=array())
 
 getElementInline ($aParams=array())
 
 getElement ($aParams=array())
 
 getElementAPI ($aParams=[])
 
 getCounter ($aParams=[])
 
 getCounterApi ($aParams=[])
 
- Public Member Functions inherited from BxDolCmts
 init ($iId)
 
 getId ()
 
 getSystemId ()
 
 getSystemName ()
 
 getSystemInfo ()
 
 getStorageObjectName ()
 
 getTranscoderPreviewName ()
 
 getFormObject ()
 
 getTableNameImages ()
 
 getTableNameImages2Entries ()
 
 getLanguageKey ($sIndex)
 
 getMaxLevel ()
 
 getOrder ()
 
 getPerView ($iCmtParentId=0)
 
 getStatusAdmin ()
 
 getViewUrl ($iCmtId, $bAbsolute=true)
 
 getViewText ($mixedItem)
 
 getBaseUrl ()
 
 getListUrl ()
 
 getItemUrl ($iItemId)
 
 getListAnchor ($bWithHash=false)
 
 getItemAnchor ($iItemId, $bWithHash=false)
 
 getAttachments ($iCmtId)
 
 getConnectionObject ($sType)
 
 getVoteObject ($iEniqId)
 
 getReactionObject ($iEniqId)
 
 getScoreObject ($iEniqId)
 
 getReportObject ($iEniqId)
 
 getNotificationId ()
 
 getSocketName ()
 
 setTableNameFiles ($sTable)
 
 setTableNameFiles2Entries ($sTable)
 
 isHtml ()
 
 isRatable ()
 
 isAttachImageEnabled ()
 
 isAutoApprove ()
 
 setId ($iId)
 
 addMarkers ($a)
 
 getQueryObject ()
 
 getCommentsTableName ()
 
 getObjectAuthorId ($iObjectId=0)
 
 getObjectPrivacyView ($iObjectId=0)
 
 getObjectContentFilter ()
 
 getCommentsCountAll ($iObjectId=0, $bForceCalculate=false)
 
 getCommentsCount ($iObjectId=0, $iCmtVParentId=-1, $sFilter='')
 
 getCommentsArray ($iVParentId, $sFilter, $aOrder, $iStart=0, $iCount=-1)
 
 getCommentsBy ($aParams=[])
 
 getCommentUniqId ($iCmtId, $iAuthorId=0)
 
 getCommentSimple ($iCmtId)
 
 getCommentRow ($iCmtId)
 
 onObjectDelete ($iObjectId=0)
 
 deleteVotes ($mixedCmtId)
 
 deleteReactions ($mixedCmtId)
 
 deleteScores ($mixedCmtId)
 
 deleteReports ($mixedCmtId)
 
 deleteMetaInfo ($mixedCmtId)
 
 deleteUniqueIds ($mixedCmtId)
 
 isAdmin ($iCmtAuthorId)
 
 checkAction ($sAction, $isPerformAction=false)
 
 checkActionErrorMsg ($sAction)
 
 isViewAllowed ($isPerformAction=false)
 
 isVoteAllowed ($aCmt, $isPerformAction=false)
 
 isScoreAllowed ($aCmt, $isPerformAction=false)
 
 isReportAllowed ($aCmt, $isPerformAction=false)
 
 isPostAllowed ($isPerformAction=false)
 
 msgErrPostAllowed ()
 
 isReplyAllowed ($mixedCmt, $isPerformAction=false)
 
 msgErrReplyAllowed ()
 
 isQuoteAllowed ($mixedCmt, $isPerformAction=false)
 
 msgErrQuoteAllowed ()
 
 isPinAllowed ($aCmt, $isPerformAction=false)
 
 msgErrPinAllowed ()
 
 isUnpinAllowed ($aCmt, $isPerformAction=false)
 
 msgErrUnpinAllowed ()
 
 isEditAllowedAll ($isPerformAction=false)
 
 isRemoveAllowedAll ($isPerformAction=false)
 
 isMoreAllowed ($aCmt, $isPerformAction=false)
 
 isModerator ($isPerformAction=false)
 
 actionPin ()
 
 actionGetFormPost ()
 
 actionGetFormEdit ()
 
 actionGetCmt ()
 
 actionGetCmts ()
 
 actionSubmitPostForm ()
 
 actionSubmitEditForm ()
 
 actionRemove ()
 
 remove ($iCmtId)
 
 add ($aValues)
 
 actionResumeLiveUpdate ()
 
 actionPauseLiveUpdate ()
 
 actionGetSiblingFiles ()
 
 onPostAfter ($iCmtId, $aDp=[])
 
 onEditAfter ($iCmtId, $aDp=[])
 
 serviceGetAuthor ($iContentId)
 
 serviceGetDateAdded ($iContentId)
 
 serviceGetDateChanged ($iContentId)
 
 serviceGetLink ($iContentId)
 
 serviceGetTitle ($iContentId)
 
 serviceGetText ($iContentId)
 
 serviceGetThumb ($iContentId)
 
 serviceGetInfo ($iContentId, $bSearchableFieldsOnly=true)
 
 serviceGetInfoApi ($iContentId, $bExtendedUnits=false)
 
 serviceGetSearchResultUnit ($iContentId, $sUnitTemplate='')
 
 serviceGetAll ($aParams=array())
 
 serviceGetSearchableFieldsExtended ($aInputsAdd=array())
 
 registerTranscoders ()
 
 unregisterTranscoders ()
 
 serviceGetSearchResultExtended ($aParams, $iStart=0, $iPerPage=0, $bFilterMode=false)
 
 getAuthorInfo ($iAuthorId=0)
 
 getParams (&$aBp, &$aDp)
 
 prepareParams (&$aBp, &$aDp)
 
 _getStructure ($mixedItem, $aBp, &$iLevel, &$aStructure)
 
 _getStructureAPI ($mixedItem, $aBp, &$iLevel, &$aStructure)
 
 getDataAPI ($aData, $aParams=[])
 

Protected Member Functions

 _getFormObject ($sAction=BX_CMT_ACTION_POST)
 
 _prepareAlertParams ($aCmt)
 
 _prepareAlertParamsReply ($aCmt, $aCmtPrnt)
 
- Protected Member Functions inherited from BxBaseCmts
 _getCounterItems ($iCmtsLimit, $iCmtsStart=0)
 
 _getLabelDo ($aParams=[])
 
 _getCounterLabel ($iCount, $aParams=[])
 
 _getTmplElementBlock ()
 
 _getTmplElementInline ()
 
 _getTmplLabelDo ()
 
 _getTmplCounter ()
 
 _isShowContent ($aCmt)
 
 _getContentBefore ($aBp=array(), $aDp=array())
 
 _getContentAfter ($aBp=array(), $aDp=array())
 
 _getControlsBox ()
 
 _getActionsBox (&$aCmt, $aBp=[], $aDp=[])
 
 _getCountersBox (&$aCmt, $aBp=[], $aDp=[])
 
 _getFormBox ($sType, $aBp, $aDp)
 
 _getFormAdd ($aValues)
 
 _getFormPost ($iCmtParentId=0, $aDp=[])
 
 _getFormEdit ($iCmtId, $aDp=[])
 
 _getForm ($sAction, $iId)
 
 _getContent ($aCmt, $aBp=[], $aDp=[])
 
 _getMoreLink ($sCmts, $aBp=array(), $aDp=array())
 
 _getEmpty ($aDp=array())
 
 _getAttachments ($aCmt)
 
 _getTmplVarsNotes ($aCmt)
 
 _getTmplVarsAuthor ($aCmt)
 
 _getTmplVarsText ($aCmt)
 
 _getDoComment ($aParams=[], $isAllowedComment=true)
 
- Protected Member Functions inherited from BxDolCmts
 _getAuthorId ()
 
 _getAuthorPassword ()
 
 _getAuthorIp ()
 
 _getAuthorInfo ($iAuthorId=0)
 
 _getAuthorObject ($iAuthorId=0)
 
 _unsetFormObject ($sAction=BX_CMT_ACTION_POST)
 
 _getParams (&$aBp, &$aDp)
 
 _prepareAuditParams ($iId, $aData)
 
 _prepareTextForOutput ($s, $iCmtId=0)
 
 _prepareStructureBp ($sDType, &$aBp)
 
 _prepareParams (&$aBp, &$aDp)
 
 _triggerComment ()
 
 _replaceMarkers ($mixed)
 
 _getUserChoice ()
 
 _setUserChoice ($sDp, $sBpType, $sBpFilter)
 
 _sendNotificationEmail ($iCmtId, $iCmtParentId)
 
 _isShowDoComment ($aParams, $isAllowedComment, $bCount)
 
 _isShowCounter ($aParams, $isAllowedComment, $bCount)
 
 _getImageDo ()
 
 _getIconDo ()
 
 _getTitleDo ()
 

Protected Attributes

 $_sModule
 
 $_oModule
 
 $_iSilentMode
 
- Protected Attributes inherited from BxBaseCmts
 $_sTmplNameItem
 
 $_sTmplNameItemContent
 
 $_sJsObjClass
 
 $_sJsObjName
 
 $_sStylePrefix
 
 $_aHtmlIds
 
 $_aAclId2Name
 
- Protected Attributes inherited from BxDolCmts
 $_sTableImages = 'sys_cmts_images'
 
 $_sTableImages2Entries = 'sys_cmts_images2entries'
 
 $_aElementDefaults
 
 $_aElementDefaultsApi
 
 $_aElementParamsApi
 
 $_bIsApi
 
 $_sType
 
 $_oQuery = null
 
 $_oTemplate = null
 
 $_bPostQuote
 
 $_bMinPostForm
 
 $_sFormObject
 
 $_sFormDisplayPost
 
 $_sFormDisplayEdit
 
 $_sConnObjFriends
 
 $_sConnObjSubscriptions
 
 $_sMenuObjManage
 
 $_sMenuObjActions
 
 $_sMenuObjCounters
 
 $_sMenuObjMeta
 
 $_sMetatagsObj
 
 $_sViewUrl = ''
 
 $_sBaseUrl = ''
 
 $_sListAnchor = ''
 
 $_sItemAnchor = ''
 
 $_aSystems = []
 
 $_sSystem = 'profile'
 
 $_aSystem = []
 
 $_iId = 0
 
 $_iAuthorId = 0
 
 $_aT = array ()
 
 $_aMarkers = array ()
 
 $_sDisplayType = ''
 
 $_sDpSessionKey = ''
 
 $_iDpMaxLevel = 0
 
 $_sBrowseType = ''
 
 $_bBrowseFilter = false
 
 $_sBrowseFilter = ''
 
 $_sBpSessionKeyType = ''
 
 $_sBpSessionKeyFilter = ''
 
 $_aOrder = array()
 
 $_sSnippetLenthLiveSearch = 50
 
 $_iRememberTime = 2592000
 
 $_bLiveUpdates = true
 

Additional Inherited Members

- Static Public Member Functions inherited from BxDolCmts
static getObjectInstance ($sSys, $iId, $iInit=true, $oTemplate=false)
 
static getObjectInstanceByUniqId ($iUniqId, $iInit=true, $oTemplate=false)
 
static & getSystems ()
 
static getGlobalInfo ($iUniqueId)
 
static getGlobalNumByParams ($aParams=[])
 
static onAuthorDelete ($iAuthorId)
 
static onModuleEnable ($sModuleName)
 
static onModuleDisable ($sModuleName)
 
static onModuleUninstall ($sModuleName, &$iFiles=null)
 
- Static Public Attributes inherited from BxDolCmts
static $sTableSystems = 'sys_objects_cmts'
 
static $sTableIds = 'sys_cmts_ids'
 
- Static Protected Attributes inherited from BxBaseCmts
static $_sTmplContentElementBlock
 
static $_sTmplContentElementInline
 
static $_sTmplContentDoCommentLabel
 
static $_sTmplContentCounter
 

Constructor & Destructor Documentation

◆ __construct()

BxCnvCmts::__construct ( $sSystem,
$iId,
$iInit = true,
$oTemplate = false )

Constructor $sSystem - comments system name $iId - obect id to be commented

Reimplemented from BxTemplCmts.

Member Function Documentation

◆ _getFormObject()

BxCnvCmts::_getFormObject ( $sAction = BX_CMT_ACTION_POST)
protected

Reimplemented from BxDolCmts.

◆ _prepareAlertParams()

BxCnvCmts::_prepareAlertParams ( $aCmt)
protected

Reimplemented from BxDolCmts.

◆ _prepareAlertParamsReply()

BxCnvCmts::_prepareAlertParamsReply ( $aCmt,
$aCmtPrnt )
protected

Reimplemented from BxDolCmts.

◆ addCssJs()

BxCnvCmts::addCssJs ( )

Add comments CSS/JS

Reimplemented from BxBaseCmts.

◆ getCommentBlock()

BxCnvCmts::getCommentBlock ( $iCmtId = 0,
$aBp = array(),
$aDp = array() )

get comment view block with initializations

Reimplemented from BxBaseCmts.

◆ getCommentsBlock()

BxCnvCmts::getCommentsBlock ( $aBp = array(),
$aDp = array() )

get full comments block with initializations

Hooks:

'system', 'view_comments' - hook to override comments block

  • $unit_name - equals system
  • $action - equals view_comments
  • $object_id - not used
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

    • object - [object] an instance of comments,
      See also
      BxDolCmts
    • system - [string] comments object name
    • id - [int] commented content id
    • params_browse - [array] browse params array as key&value pairs
    • params_display - [array] display params array as key&value pairs
    • post_form_top - [string] by ref, post form code for top section, can be overridden in hook processing
    • content_before - [string] by ref, a code to be displayed before comments list, can be overridden in hook processing
    • comments - [string] by ref, a comments list code, can be overridden in hook processing
    • comments_pinned - [string] by ref, a pinned comments list code, can be overridden in hook processing
    • content_after - [string] by ref, a code to be displayed after comments list, can be overridden in hook processing
    • post_form_bottom - [string] by ref, post form code for bottom section, can be overridden in hook processing
    • js_content - [string] by ref, comments JavaScript code, can be overridden in hook processing
    • block_title - [string] by ref, block title, can be overridden in hook processing
    • block_menu - [string] by ref, block submenu, can be overridden in hook processing
    HOOKS
    'system', 'view_comments' - hook to override comments block

Reimplemented from BxBaseCmts.

◆ getObjectTitle()

BxCnvCmts::getObjectTitle ( $iObjectId = 0)

Reimplemented from BxDolCmts.

◆ isEditAllowed()

BxCnvCmts::isEditAllowed ( $aCmt,
$isPerformAction = false )

Reimplemented from BxDolCmts.

◆ isEnabled()

BxCnvCmts::isEnabled ( )

Comments are enabled for collaborators only

Reimplemented from BxDolCmts.

◆ isRemoveAllowed()

BxCnvCmts::isRemoveAllowed ( $aCmt,
$isPerformAction = false )

Reimplemented from BxDolCmts.

◆ msgErrEditAllowed()

BxCnvCmts::msgErrEditAllowed ( )

Reimplemented from BxDolCmts.

◆ msgErrRemoveAllowed()

BxCnvCmts::msgErrRemoveAllowed ( )

Reimplemented from BxDolCmts.

Member Data Documentation

◆ $_iSilentMode

BxCnvCmts::$_iSilentMode
protected

Silent Mode for Notification based modules.


The documentation for this class was generated from the following file: