UNA
|
Public Member Functions | |
__construct (&$oConfig, &$oDb) | |
init () | |
getAddedCss ($sType='', $bDynamic=false) | |
getAddedJs ($sType='', $bDynamic=false) | |
getJsCodeView ($aParams=[], $bWrap=true, $bDynamic=false) | |
getJsCodeViewFilters ($aParams=[], $bWrap=true, $bDynamic=false) | |
getJsCodePost ($iOwnerId, $aParams=array(), $bWrap=true, $bDynamic=false) | |
getPostBlock ($iOwnerId, $aParams=array()) | |
getViewsBlock ($aParams) | |
getViewsDbBlock ($aParams) | |
getViewFilters ($aParams) | |
getViewBlock ($aParams) | |
getSearchBlock ($sContent) | |
getItemBlock ($mixedId, $aBrowseParams=array()) | |
getItemBlockContent ($iId, $sMode) | |
getItemBlockInfo ($iId) | |
getItemBlockComments ($iId) | |
getUnit (&$aEvent, $aBrowseParams=array()) | |
getPost (&$aEvent, $aBrowseParams=array()) | |
getPostApi ($aEvent, $aParams=[]) | |
getPosts ($aParams) | |
getEmpty ($bVisible) | |
getSizer ($aParams) | |
getBack ($aParams) | |
getLoadMore ($aParams, $bEnabled, $bVisible=true) | |
getLoadMoreAuto ($aParams, $bEnabled, $bVisible=true) | |
getJumpTo ($aParams) | |
getComments ($sSystem, $iId, $aBrowseParams=array()) | |
getRepostElement ($iOwnerId, $sType, $sAction, $iObjectId, $aParams=[]) | |
getRepostCounter ($aEvent, $aParams=[]) | |
getRepostCounterLabel ($iCount, $aParams=[]) | |
getRepostedBy ($iId) | |
getRepostWith ($oForm) | |
getRepostWithFieldReposted ($oForm, $aInput) | |
getRepostTo ($oForm) | |
getRepostToFieldList ($oForm, $aInput) | |
getRepostJsScript ($bDynamicMode=false) | |
getRepostJsClick ($iOwnerId, $sType, $sAction, $iObjectId) | |
getRepostWithJsClick ($iReposterId, $sType, $sAction, $iObjectId) | |
getRepostToJsClick ($iReposterId, $sType, $sAction, $iObjectId) | |
getAttachLinkForm ($iEventId=0) | |
getAttachLinkField ($iUserId, $iEventId=0) | |
getAttachLinkItem ($iUserId, $mixedLink) | |
getData (&$aEvent, $aBrowseParams=array()) | |
getDataCached ($aEvent, $aBrowseParams=array()) | |
getVideo ($aEvent, $aVideo) | |
getLiveUpdate ($aBrowseParams, $iProfileId, $iCountOld=0, $iCountNew=0) | |
getLiveUpdates ($aBrowseParams, $iProfileId, $iCountOld=0, $iCountNew=0) | |
![]() | |
addLocationBase () | |
getCssJs ($sType='', $bDynamic=false) | |
getJsCode ($sType, $aParams=array(), $bWrap=true, $bDynamic=false) | |
unit ($aData, $isCheckPrivateContent=true, $sTemplateName='unit.html') | |
![]() | |
getJsCode ($sType, $aParams=array(), $mixedWrap=true) | |
getTitleAuto ($aData, $iMaxLen=20, $sEllipsisSign='...') | |
getTitle ($aData, $mixedProcessOutput=BX_DATA_TEXT) | |
getAbstract ($aData, $mixedProcessOutput=BX_DATA_TEXT) | |
getText ($aData, $mixedProcessOutput=BX_DATA_HTML) | |
getProfileLink ($mixedProfile) | |
getLink ($sTemplate, $aParams) | |
getContextAddon ($aData, $oProfile) | |
getContextDesc ($aData) | |
getTmplVarsText ($aData) | |
entryBreadcrumb ($aContentInfo, $aTmplVarsItems=array()) | |
entryText ($aData, $sTemplateName='entry-text.html') | |
entryLocation ($iContentId) | |
entryInfo ($aData, $aValues=array()) | |
getFavoriteList ($oProfile, $iStart, $iPerPage, $aParams) | |
getFavoritesListInfo ($aList, $oProfile) | |
getBrowsingFilters ($aParams) | |
entryAllActions ($sActions) | |
entryAttachments ($aData, $aParams=array()) | |
entryAttachmentsByStorage ($mixedStorage, $aData, $aParams=array()) | |
entryContext ($aData, $iProfileId=false, $sFuncContextDesc='getContextDesc', $sTemplateName='context.html', $sFuncContextAddon='getContextAddon') | |
getAttachmentsData ($sStorage, $aData, $aParams=array()) | |
embedVideo ($iFileId) | |
embedSound ($iFileId) | |
_getImageSettings ($sSettings) | |
_prepareImage ($aData, $sUniqId, $aUploaders, $sStorage, $sField, $bAllowTweak, $bAllowMultiple=false) | |
addCssJs () | |
![]() | |
__construct (&$oConfig, &$oDb, $sRootPath=BX_DIRECTORY_PATH_ROOT, $sRootUrl=BX_DOL_URL_ROOT) | |
getModule () | |
addCssSystem ($mixedFiles, $bDynamic=false) | |
addCss ($mixedFiles, $bDynamic=false) | |
addJsSystem ($mixedFiles, $bDynamic=false) | |
addJs ($mixedFiles, $bDynamic=false) | |
addJsTranslation ($mixedKey, $bDynamic=false) | |
addStudioCss ($mixedFiles, $bDynamic=false, $bSearchInModule=true) | |
addStudioCssSystem ($mixedFiles, $bDynamic=false, $bSearchInModule=true) | |
addStudioJs ($mixedFiles, $bDynamic=false, $bSearchInModule=true) | |
addStudioJsSystem ($mixedFiles, $bDynamic=false, $bSearchInModule=true) | |
addStudioJsTranslation ($mixedKey) | |
_addFiles ($oTemplate, $sFuncAddFiles, $sFuncIsLocation, $sFuncAddLocation, $sFuncRemoveLocation, $sPath, $mixedFiles, $bDynamic=false, $bSearchInModule=true, $aLocations=array()) | |
addStudioInjection ($sKey, $sType, $sData, $iReplace=0) | |
pageStart () | |
pageEnd ($isGetContent=true) | |
isMethodExists ($s) | |
Protected Member Functions | |
_getPost ($sType, $aEvent, $aBrowseParams=array()) | |
_getPostApi (&$aEvent, $aParams=[]) | |
_getContent ($sType, $aEvent, $aBrowseParams=array()) | |
_getComments ($aComments, $aBrowseParams=array()) | |
_getShowMore ($aParams) | |
_getImagePopup ($aParams) | |
_getRepostJsClick ($iOwnerId, $sType, $sAction, $iObjectId) | |
_getRepostWithJsClick ($iReposterId, $sType, $sAction, $iObjectId) | |
_getRepostToJsClick ($iReposterId, $sType, $sAction, $iObjectId) | |
_getJumpToList ($aParams) | |
_getJumpToCaledar ($aParams) | |
_getTmplVarsMenuItemActions (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsManage (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsMenuItemCounters (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsMenuItemMeta (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsTimelineOwner (&$aEvent) | |
_getTmplVarsContentPost (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsContentRepost (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsNote (&$aEvent) | |
_getTmplVarsOwnerActions (&$aEvent, $aBrowseParams=array()) | |
_getTmplVarsImages ($aImages, $mixedLayout, &$aEvent, &$aBrowseParams) | |
_getTmplVarsVideos ($aVideos, $mixedLayout, &$aEvent, &$aBrowseParams) | |
_getTmplVarsFiles ($aFiles, &$aEvent, &$aBrowseParams) | |
_getSystemData (&$aEvent, $aBrowseParams=array()) | |
_getCommonData (&$aEvent, $aBrowseParams=array()) | |
_getFirst ($aEvents, $aParams=array()) | |
_preparetDataActions ($bCommon, &$aEvent, &$aResult) | |
_prepareTextForOutputBriefCard ($s, $iEventId=0) | |
_prepareTextForOutput ($s, $iEventId=0) | |
_preparePrivacy ($sKey, $aEvent, $aEventData) | |
_getCounterIcon ($aParams=array()) | |
_getCounterLabel ($iCount, $aParams=array()) | |
![]() | |
getSummary ($aData, $sTitle='', $sText='', $sUrl='') | |
getAttachmentsImagesTranscoders ($sStorage='') | |
getAttachmentsVideoTranscoders ($sStorage='') | |
getAttachments ($sStorage, $aData, $aParams=array()) | |
_embedChecks ($sStorageKey, $iFileId) | |
Protected Attributes | |
$_aAclId2Name | |
![]() | |
$MODULE | |
$_bIsApi | |
![]() | |
$_oDb | |
$_oConfig | |
$_bObStarted = 0 | |
$_oModule | |
Additional Inherited Members | |
![]() | |
$aMethodsToCallAddJsCss = array('entry', 'unit') | |
BxTimelineTemplate::__construct | ( | & | $oConfig, |
& | $oDb ) |
Reimplemented from BxBaseModNotificationsTemplate.
|
protected |
It's equivalent to 'bx_timeline', 'get_post' - hook to override a post (event) before output
|
protected |
bx_timeline
get_post
type
- [string] post type: post or repostevent
- [array] event data array as key&value pairsbrowse_params
- [array] browse params array as key&value pairstmpl_code
- [string] by ref, template HTML code, can be overridden in hook processingtmpl_vars
- [array] by ref, template parsable variables as key&value pairs, can be overridden in hook processing
|
protected |
Disabled because it filter out non-standard fields, like price from Ads or dates from Events.
$aEvent['content'] = array_intersect_key($aEvent['content'], array_flip([ 'object_id', 'title', 'text', 'links', 'images', 'images_attach', 'videos', 'videos_attach', 'files', 'files_attach', 'parse_type', 'owner_name', 'embed' ]));
BxTimelineTemplate::getAddedCss | ( | $sType = '', | |
$bDynamic = false ) |
Reimplemented from BxBaseModNotificationsTemplate.
BxTimelineTemplate::getAddedJs | ( | $sType = '', | |
$bDynamic = false ) |
Reimplemented from BxBaseModNotificationsTemplate.
BxTimelineTemplate::getDataCached | ( | $aEvent, | |
$aBrowseParams = array() ) |
For now parameters from $aBrowseParams array aren't used during data retrieving. If they will then the cache should be created depending on their values.
BxTimelineTemplate::getItemBlockContent | ( | $iId, | |
$sMode ) |
Get event's content.
integer | $iId | - event ID. |
string | $sMode | - 'file'/'photo'/'video' are available for now. But only images will be shown. |
BxTimelineTemplate::getJumpTo | ( | $aParams | ) |
Note. For now both List and Caledar based Jump To elements are available. Calendar based element is used by default. List based one can be removed later if it won't be used completely.
BxTimelineTemplate::getPost | ( | & | $aEvent, |
$aBrowseParams = array() ) |
Add all items in memory cache even if they are empty.
BxTimelineTemplate::getPosts | ( | $aParams | ) |
bx_timeline
get_external_post
params
- [array] browse params array as key&value pairsoverride_result
- [string] or [array] by ref, code to be added to events list, can be overridden in hook processing
BxTimelineTemplate::getRepostedBy | ( | $iId | ) |
bx_timeline
get_reposted_by
content_id
- [int] reposted content iduser_ids
- [array] an array with reposters' profile idsusers
- [array] by ref, an array with variables (keys) which will be used to parse HTML template, can be overridden in hook processing
BxTimelineTemplate::getUnit | ( | & | $aEvent, |
$aBrowseParams = array() ) |
Reimplemented from BxBaseModNotificationsTemplate.
BxTimelineTemplate::getViewBlock | ( | $aParams | ) |
bx_timeline
add_live_update
browse_params
- [array] browse params array as key&value pairslive_update_params
- [array] by ref, live update params array as key&value pairs, can be overridden in hook processingoverride_result
- [string] by ref, live update code, can be overridden in hook processing
bx_timeline
get_view
params
- [array] browse params array as key&value pairsevent_first
- [int] the first event idback
- [string] by ref, back link code, can be overridden in hook processingempty
- [string] by ref, empty message code, can be overridden in hook processingcontent_before
- [string] by ref, code for before content section, can be overridden in hook processingcontent
- [string] by ref, content itself, can be overridden in hook processingcontent_after
- [string] by ref, code for after content section, can be overridden in hook processingload_more
- [string] by ref, load more link code, can be overridden in hook processingjs_content
- [string] by ref, JavaScript code, can be overridden in hook processing
BxTimelineTemplate::init | ( | ) |
Initialize module template engine. Note. The method is executed with the system, you shouldn't execute it in your subclasses.
Reimplemented from BxDolModuleTemplate.