UNA
BxTimelineModule Class Reference
Inheritance diagram for BxTimelineModule:
BxBaseModNotificationsModule iBxDolContentInfoService BxBaseModGeneralModule BxDolModule BxDol

Public Member Functions

 __construct ($aModule)
 
 actionGetContexts ($iLimit=20)
 
 serviceGetPosts ($aParams)
 
 serviceGetSafeServices ()
 
 serviceGetHotSourcesChecklist ()
 
 serviceGetForYouSourcesChecklist ()
 
 serviceGetContentOwnerProfileId ($mixedEvent)
 
 serviceGetCreatePostForm ($aParams=array())
 
 serviceGetObjectForm ($sType, $aParams=array())
 
 serviceGetAuthor ($iContentId)
 
 serviceGetDateChanged ($iContentId)
 
 serviceGetLink ($iContentId)
 
 serviceGetThumb ($iContentId, $sTranscoder='')
 
 serviceGetInfo ($iContentId, $bSearchableFieldsOnly=true)
 
 serviceGetTitle ($iContentId)
 
 serviceGetSearchResultUnit ($iContentId, $sUnitTemplate='')
 
 serviceGetBlockPost ($iProfileId=0)
 
 serviceGetBlockPostProfile ($sProfileModule='bx_persons', $iProfileContentId=0)
 
 serviceGetBlockPostHome ()
 
 serviceGetBlockPostAccount ()
 
 serviceGetBlockPostCustom ($aParams)
 
 serviceGetBlockView ($iProfileId=0)
 
 serviceGetBlockViewOutline ($iProfileId=0)
 
 serviceGetBlockViewProfile ($sProfileModule='bx_persons', $iProfileContentId=0, $iStart=-1, $iPerPage=-1, $sFilter='', $aModules=array(), $iTimeline=-1)
 
 serviceGetBlockViewProfileOutline ($sProfileModule='bx_persons', $iProfileContentId=0, $iStart=-1, $iPerPage=-1, $sFilter='', $aModules=array(), $iTimeline=-1)
 
 serviceGetBlockViewHome ($iProfileId=0, $iStart=-1, $iPerPage=-1, $iTimeline=-1, $sFilter='', $aModules=array())
 
 serviceGetBlockViewHomeOutline ($iProfileId=0, $iStart=-1, $iPerPage=-1, $iTimeline=-1, $sFilter='', $aModules=array())
 
 serviceGetBlockViewHot ($iProfileId=0, $iStart=-1, $iPerPage=-1, $iTimeline=-1, $sFilter='', $aModules=array())
 
 serviceGetBlockViewHotOutline ($iProfileId=0, $iStart=-1, $iPerPage=-1, $iTimeline=-1, $sFilter='', $aModules=array())
 
 serviceGetBlockViewAccount ($iProfileId=0, $iStart=-1, $iPerPage=-1, $iTimeline=-1, $sFilter='', $aModules=array())
 
 serviceGetBlockViewAccountOutline ($iProfileId=0, $iStart=-1, $iPerPage=-1, $iTimeline=-1, $sFilter='', $aModules=array())
 
 serviceGetBlockViewCustom ($aParams=[])
 
 serviceGetBlockItem ()
 
 serviceGetNotificationsData ()
 
 serviceGetNotificationsRepost ($aEvent)
 
 serviceGetNotificationsPost ($aEvent)
 
 serviceGetNotificationsComment ($aEvent)
 
 serviceGetNotificationsReply ($aEvent)
 
 serviceGetNotificationsVote ($aEvent)
 
 serviceGetNotificationsReaction ($aEvent)
 
 serviceGetNotificationsScoreUp ($aEvent)
 
 serviceGetNotificationsScoreDown ($aEvent)
 
 serviceGetRepostElementBlock ($iOwnerId, $sType, $sAction, $iObjectId, $aParams=[])
 
 serviceGetRepostElementBlockApi ($iOwnerId, $sType, $sAction, $iObjectId, $aParams=[])
 
 serviceGetRepostCounter ($sType, $sAction, $iObjectId, $aParams=[])
 
 serviceGetRepostJsScript ()
 
 serviceGetRepostJsClick ($iOwnerId, $sType, $sAction, $iObjectId)
 
 serviceGetRepostWithJsClick ($iReposterId, $sType, $sAction, $iObjectId)
 
 serviceGetRepostToJsClick ($iReposterId, $sType, $sAction, $iObjectId)
 
 serviceRepost ($iAuthorId, $iOwnerId, $sType, $sAction, $iObjectId, $bForce=false)
 
 serviceRepostWith ($iAuthorId, $iOwnerId, $sType, $sAction, $iObjectId, $mixedData=false, $bForce=false)
 
 serviceRepostById ($iAuthorId, $iOwnerId, $iEventId, $bForce=false)
 
 serviceUpdate ($iEventId, $aSet)
 
 serviceDelete ($iId)
 
 serviceGetMenuItemAddonComment ($sSystem, $iObjectId, $aBrowseParams=array())
 
 serviceGetSettingsCheckerHelper ()
 
 serviceGetOptionsVideosPreload ()
 
 serviceGetOptionsVideosAutoplay ()
 
 serviceGetOptionsAttachmentsLayout ()
 
 serviceGetLiveUpdate ($aBrowseParams, $iProfileId, $iValue=0, $iInit=0)
 
 serviceGetLiveUpdates ($aBrowseParams, $iProfileId, $iCount=0, $iInit=0)
 
 serviceGetMenuAddonManageTools ()
 
 serviceGetMenuAddonProfileStats ($iProfileId=0)
 
 serviceDeleteEntity ($iContentId, $sFuncDelete='deleteData')
 
 isAllowedPin ($aEvent, $bPerform=false)
 
 isAllowedStick ($aEvent, $bPerform=false)
 
 checkAllowedCommentsView ($aContentInfo, $isPerformAction=false)
 
 checkAllowedCommentsPost ($aContentInfo, $isPerformAction=false)
 
 serviceGetUserPosts ($iProfileId=0, $sPage='home', $sTab='hot', $iStart=0, $iPerPage=0)
 
- Public Member Functions inherited from BxBaseModNotificationsModule
 serviceAddHandlers ($sModuleUri)
 
 serviceDeleteHandlers ($sModuleUri)
 
 serviceDeleteModuleEvents ($sModuleUri)
 
 serviceGetActionsChecklist ()
 
- Public Member Functions inherited from BxBaseModGeneralModule
 actionAjaxGetProfiles ()
 
 serviceModuleIcon ()
 
 serviceGetLink ($iContentId)
 
 serviceGetSearchResultUnit ($iContentId, $sUnitTemplate='')
 
 serviceBrowse ($aParams=array())
 
 serviceBrowseFeatured ($sUnitView=false, $bEmptyMessage=false, $bAjaxPaginate=true)
 
 serviceBrowseFavorite ($iProfileId=0, $aParams=array())
 
 serviceBrowseFavoriteLists ($iProfileId=0, $aParams=array())
 
 serviceBrowseCategory ($sUnitView=false, $bEmptyMessage=true, $bAjaxPaginate=true, $aParams=[])
 
 serviceFavoritesListActions ()
 
 serviceFavoritesListInfo ($aParams=array())
 
 serviceBrowseContext ($iProfileId=0, $aParams=array())
 
 serviceEntityAdd ($iProfile, $aValues, $sDisplay=false)
 
 serviceRedirectAfterAdd ($aContentInfo)
 
 serviceGetObjectForm ($sType, $aParams=array())
 
 serviceEntityCreate ($sParams=false)
 
 serviceGetCreatePostForm ($aParams=[])
 
 serviceEntityEdit ($iContentId=0, $sDisplay=false)
 
 serviceEntityDelete ($iContentId=0)
 
 serviceEntityTextBlock ($iContentId=0)
 
 serviceEntityInfo ($iContentId=0, $sDisplay=false)
 
 serviceEntityInfoFull ($iContentId=0)
 
 serviceEntityInfoExtended ($iContentId=0)
 
 serviceEntityLocation ($iContentId=0)
 
 serviceEntityComments ($iContentId=0)
 
 serviceEntityAttachments ($iContentId=0)
 
 serviceDeleteEntity ($iContentId, $sFuncDelete='deleteData')
 
 serviceMyEntriesActions ($iProfileId=0)
 
 serviceEntityAllActions ($mixedContent=false, $aParams=array())
 
 serviceEntityActions ($iContentId=0)
 
 serviceEntityReports ($iContentId=0)
 
 serviceReportsCountByStatus ($iStatus)
 
 serviceEntitySocialSharing ($mixedContent=false, $aParams=array())
 
 serviceEntityContext ($iContentId=0)
 
 serviceGetLablesTree ()
 
 serviceGetNotificationsData ()
 
 serviceGetNotificationsPost ($aEvent)
 
 serviceGetNotificationsComment ($aEvent)
 
 serviceGetNotificationsReply ($aEvent)
 
 serviceGetNotificationsVote ($aEvent)
 
 serviceGetNotificationsReaction ($aEvent)
 
 serviceGetNotificationsScoreUp ($aEvent)
 
 serviceGetNotificationsScoreDown ($aEvent)
 
 serviceGetTimelineData ()
 
 serviceGetTimelinePost ($aEvent, $aBrowseParams=array())
 
 serviceCheckAllowed ($sAction, $isPerformAction=false)
 
 serviceCheckAllowedWithContent ($sAction, $iContentId, $isPerformAction=false)
 
 serviceCheckAllowedWithContentForProfile ($sAction, $iContentId, $iProfileId, $isPerformAction=false)
 
 serviceCategoriesMultiList ($bDisplayEmptyCats=true)
 
 serviceCheckAllowedViewForProfile ($aDataEntry, $isPerformAction=false, $iProfileId=false)
 
 checkAllowedBrowse ()
 
 checkAllowedView ($aDataEntry, $isPerformAction=false)
 
 checkAllowedViewForProfile ($aDataEntry, $iProfileId, $isPerformAction=false)
 
 checkAllowedAdd ($isPerformAction=false)
 
 checkAllowedApprove ($aDataEntry, $isPerformAction=false)
 
 checkAllowedEdit ($aDataEntry, $isPerformAction=false)
 
 checkAllowedDelete (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedSetMembership (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedEditAnyEntry ($isPerformAction=false)
 
 checkAllowedDeleteAnyEntry ($isPerformAction=false)
 
 checkAllowedEditAnyEntryForProfile ($isPerformAction=false, $iProfileId=false)
 
 checkAllowedDeleteAnyEntryForProfile ($isPerformAction=false, $iProfileId=false)
 
 checkAllowedCommentsView ($aContentInfo, $isPerformAction=false)
 
 checkAllowedCommentsPost ($aContentInfo, $isPerformAction=false)
 
- Public Member Functions inherited from BxDolModule
 __construct ($aModule)
 
 isEnabled ()
 
 getName ()
 
 isLogged ()
 
 getUserId ()
 
 getUserPassword ()
 

Protected Member Functions

 _serviceGetBlockView ($iProfileId=0, $aBrowseParams=array())
 
 _checkMedia ($sType, $iContentId, $aItemIds, $iProfileId=0)
 
- Protected Member Functions inherited from BxBaseModGeneralModule
 _serviceBrowseQuick ($aProfiles, $iStart=0, $iLimit=4, $aAdditionalParams=array())
 
 _alertParams ($aContentInfo)
 

Additional Inherited Members

- Static Public Member Functions inherited from BxDolModule
static getInstance ($sName)
 

Constructor & Destructor Documentation

◆ __construct()

BxTimelineModule::__construct (   $aModule)

Constructor

Member Function Documentation

◆ _checkMedia()

BxTimelineModule::_checkMedia (   $sType,
  $iContentId,
  $aItemIds,
  $iProfileId = 0 
)
protected

Check attached media for content type (photo, video).

◆ _serviceGetBlockView()

BxTimelineModule::_serviceGetBlockView (   $iProfileId = 0,
  $aBrowseParams = array() 
)
protected

Protected Methods

◆ actionGetContexts()

BxTimelineModule::actionGetContexts (   $iLimit = 20)

ACTION METHODS

◆ actionGetPost()

BxTimelineModule::actionGetPost ( )

Note. Disabled for now, because Own posts on Timelines of Following members became visible on posts' author Dashboard Timeline.

$bAfpsLoading = (int)bx_get('afps_loading') === 1; if($bAfpsLoading && $this->_iOwnerId != $aEvent['owner_id']) return echoJson(array('message' => _t('_bx_timeline_txt_msg_posted')));

◆ checkAllowedCommentsPost()

BxTimelineModule::checkAllowedCommentsPost (   $aContentInfo,
  $isPerformAction = false 
)

Checks if it's allowed to post a comment by checking the availability to post anything in the context. Note. Don't check the related comments object for post action accessibility because this method is called from there.

◆ checkAllowedCommentsView()

BxTimelineModule::checkAllowedCommentsView (   $aContentInfo,
  $isPerformAction = false 
)

Checks if it's allowed to view a comment by checking the availability to view the content which was commented. Note. Don't check the related comments object for view action accessibility because this method is called from there.

◆ getFormPost()

BxTimelineModule::getFormPost (   $aParams = [])

Unset 'text' input because its data was already processed and will be saved via additional values which were passed to BxDolForm::insert method.

◆ getFormPostObject()

BxTimelineModule::getFormPostObject (   $aParams)

Note. 'ajax_mode' parameter isn't checked because timeline post form works as Ajax form by default.

◆ isAllowedPin()

BxTimelineModule::isAllowedPin (   $aEvent,
  $bPerform = false 
)

Pin - "Pin here" - pin the post on Profile Timeline for profile owner. Can be done by profile owner for himself or by admin for profile owner to see.

Parameters
type$aEvent
type$bPerform
Returns
boolean

◆ isAllowedStick()

BxTimelineModule::isAllowedStick (   $aEvent,
  $bPerform = false 
)

Stick - "Pin for All" - pin the post on Public Timeline for everybody to see. Is available for Administrators/Moderators only.

Parameters
type$aEvent
type$bPerform
Returns
boolean

◆ serviceDelete()

BxTimelineModule::serviceDelete (   $iId)

◆ serviceDeleteEntity()

BxTimelineModule::serviceDeleteEntity (   $iContentId,
  $sFuncDelete = 'deleteData' 
)

Delete content entry

Parameters
$iContentIdcontent id
Returns
error message or empty string on success

◆ serviceGetAuthor()

BxTimelineModule::serviceGetAuthor (   $iContentId)

◆ serviceGetBlockItem()

BxTimelineModule::serviceGetBlockItem ( )

◆ serviceGetBlockPost()

BxTimelineModule::serviceGetBlockPost (   $iProfileId = 0)

◆ serviceGetBlockPostAccount()

BxTimelineModule::serviceGetBlockPostAccount ( )

◆ serviceGetBlockPostCustom()

BxTimelineModule::serviceGetBlockPostCustom (   $aParams)

◆ serviceGetBlockPostHome()

BxTimelineModule::serviceGetBlockPostHome ( )

◆ serviceGetBlockPostProfile()

BxTimelineModule::serviceGetBlockPostProfile (   $sProfileModule = 'bx_persons',
  $iProfileContentId = 0 
)

◆ serviceGetBlockView()

BxTimelineModule::serviceGetBlockView (   $iProfileId = 0)

◆ serviceGetBlockViewAccount()

BxTimelineModule::serviceGetBlockViewAccount (   $iProfileId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $iTimeline = -1,
  $sFilter = '',
  $aModules = array() 
)

◆ serviceGetBlockViewAccountOutline()

BxTimelineModule::serviceGetBlockViewAccountOutline (   $iProfileId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $iTimeline = -1,
  $sFilter = '',
  $aModules = array() 
)

◆ serviceGetBlockViewCustom()

BxTimelineModule::serviceGetBlockViewCustom (   $aParams = [])

◆ serviceGetBlockViewHome()

BxTimelineModule::serviceGetBlockViewHome (   $iProfileId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $iTimeline = -1,
  $sFilter = '',
  $aModules = array() 
)

◆ serviceGetBlockViewHomeOutline()

BxTimelineModule::serviceGetBlockViewHomeOutline (   $iProfileId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $iTimeline = -1,
  $sFilter = '',
  $aModules = array() 
)

◆ serviceGetBlockViewHot()

BxTimelineModule::serviceGetBlockViewHot (   $iProfileId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $iTimeline = -1,
  $sFilter = '',
  $aModules = array() 
)

◆ serviceGetBlockViewHotOutline()

BxTimelineModule::serviceGetBlockViewHotOutline (   $iProfileId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $iTimeline = -1,
  $sFilter = '',
  $aModules = array() 
)

◆ serviceGetBlockViewOutline()

BxTimelineModule::serviceGetBlockViewOutline (   $iProfileId = 0)

◆ serviceGetBlockViewProfile()

BxTimelineModule::serviceGetBlockViewProfile (   $sProfileModule = 'bx_persons',
  $iProfileContentId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $sFilter = '',
  $aModules = array(),
  $iTimeline = -1 
)

◆ serviceGetBlockViewProfileOutline()

BxTimelineModule::serviceGetBlockViewProfileOutline (   $sProfileModule = 'bx_persons',
  $iProfileContentId = 0,
  $iStart = -1,
  $iPerPage = -1,
  $sFilter = '',
  $aModules = array(),
  $iTimeline = -1 
)

◆ serviceGetContentOwnerProfileId()

BxTimelineModule::serviceGetContentOwnerProfileId (   $mixedEvent)

◆ serviceGetCreatePostForm()

BxTimelineModule::serviceGetCreatePostForm (   $aParams = array())

◆ serviceGetDateChanged()

BxTimelineModule::serviceGetDateChanged (   $iContentId)

◆ serviceGetForYouSourcesChecklist()

BxTimelineModule::serviceGetForYouSourcesChecklist ( )

◆ serviceGetHotSourcesChecklist()

BxTimelineModule::serviceGetHotSourcesChecklist ( )

◆ serviceGetInfo()

BxTimelineModule::serviceGetInfo (   $iContentId,
  $bSearchableFieldsOnly = true 
)

◆ serviceGetLink()

BxTimelineModule::serviceGetLink (   $iContentId)

◆ serviceGetLiveUpdate()

BxTimelineModule::serviceGetLiveUpdate (   $aBrowseParams,
  $iProfileId,
  $iValue = 0,
  $iInit = 0 
)

◆ serviceGetLiveUpdates()

BxTimelineModule::serviceGetLiveUpdates (   $aBrowseParams,
  $iProfileId,
  $iCount = 0,
  $iInit = 0 
)

◆ serviceGetMenuAddonManageTools()

BxTimelineModule::serviceGetMenuAddonManageTools ( )

◆ serviceGetMenuAddonProfileStats()

BxTimelineModule::serviceGetMenuAddonProfileStats (   $iProfileId = 0)

◆ serviceGetMenuItemAddonComment()

BxTimelineModule::serviceGetMenuItemAddonComment (   $sSystem,
  $iObjectId,
  $aBrowseParams = array() 
)

◆ serviceGetNotificationsComment()

BxTimelineModule::serviceGetNotificationsComment (   $aEvent)

◆ serviceGetNotificationsData()

BxTimelineModule::serviceGetNotificationsData ( )

◆ serviceGetNotificationsPost()

BxTimelineModule::serviceGetNotificationsPost (   $aEvent)

◆ serviceGetNotificationsReaction()

BxTimelineModule::serviceGetNotificationsReaction (   $aEvent)

Entry post vote for Notifications module

◆ serviceGetNotificationsReply()

BxTimelineModule::serviceGetNotificationsReply (   $aEvent)

◆ serviceGetNotificationsRepost()

BxTimelineModule::serviceGetNotificationsRepost (   $aEvent)

◆ serviceGetNotificationsScoreDown()

BxTimelineModule::serviceGetNotificationsScoreDown (   $aEvent)

◆ serviceGetNotificationsScoreUp()

BxTimelineModule::serviceGetNotificationsScoreUp (   $aEvent)

◆ serviceGetNotificationsVote()

BxTimelineModule::serviceGetNotificationsVote (   $aEvent)

◆ serviceGetObjectForm()

BxTimelineModule::serviceGetObjectForm (   $sType,
  $aParams = array() 
)

◆ serviceGetOptionsAttachmentsLayout()

BxTimelineModule::serviceGetOptionsAttachmentsLayout ( )

◆ serviceGetOptionsVideosAutoplay()

BxTimelineModule::serviceGetOptionsVideosAutoplay ( )

◆ serviceGetOptionsVideosPreload()

BxTimelineModule::serviceGetOptionsVideosPreload ( )

◆ serviceGetPosts()

BxTimelineModule::serviceGetPosts (   $aParams)

◆ serviceGetRepostCounter()

BxTimelineModule::serviceGetRepostCounter (   $sType,
  $sAction,
  $iObjectId,
  $aParams = [] 
)

◆ serviceGetRepostElementBlock()

BxTimelineModule::serviceGetRepostElementBlock (   $iOwnerId,
  $sType,
  $sAction,
  $iObjectId,
  $aParams = [] 
)

◆ serviceGetRepostElementBlockApi()

BxTimelineModule::serviceGetRepostElementBlockApi (   $iOwnerId,
  $sType,
  $sAction,
  $iObjectId,
  $aParams = [] 
)

◆ serviceGetRepostJsClick()

BxTimelineModule::serviceGetRepostJsClick (   $iOwnerId,
  $sType,
  $sAction,
  $iObjectId 
)

◆ serviceGetRepostJsScript()

BxTimelineModule::serviceGetRepostJsScript ( )

◆ serviceGetRepostToJsClick()

BxTimelineModule::serviceGetRepostToJsClick (   $iReposterId,
  $sType,
  $sAction,
  $iObjectId 
)

◆ serviceGetRepostWithJsClick()

BxTimelineModule::serviceGetRepostWithJsClick (   $iReposterId,
  $sType,
  $sAction,
  $iObjectId 
)

◆ serviceGetSafeServices()

BxTimelineModule::serviceGetSafeServices ( )

SERVICE METHODS

◆ serviceGetSearchResultUnit()

BxTimelineModule::serviceGetSearchResultUnit (   $iContentId,
  $sUnitTemplate = '' 
)

◆ serviceGetSettingsCheckerHelper()

BxTimelineModule::serviceGetSettingsCheckerHelper ( )

◆ serviceGetThumb()

BxTimelineModule::serviceGetThumb (   $iContentId,
  $sTranscoder = '' 
)

◆ serviceGetTitle()

BxTimelineModule::serviceGetTitle (   $iContentId)

◆ serviceGetUserPosts()

BxTimelineModule::serviceGetUserPosts (   $iProfileId = 0,
  $sPage = 'home',
  $sTab = 'hot',
  $iStart = 0,
  $iPerPage = 0 
)

Returns records for React Jot using OAuth2

Parameters
int$iProfileId
string$sPage
string$sTab
int$iStart
int$iPerPage
Returns
array

◆ serviceRepost()

BxTimelineModule::serviceRepost (   $iAuthorId,
  $iOwnerId,
  $sType,
  $sAction,
  $iObjectId,
  $bForce = false 
)

◆ serviceRepostById()

BxTimelineModule::serviceRepostById (   $iAuthorId,
  $iOwnerId,
  $iEventId,
  $bForce = false 
)

◆ serviceRepostWith()

BxTimelineModule::serviceRepostWith (   $iAuthorId,
  $iOwnerId,
  $sType,
  $sAction,
  $iObjectId,
  $mixedData = false,
  $bForce = false 
)

◆ serviceUpdate()

BxTimelineModule::serviceUpdate (   $iEventId,
  $aSet 
)

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