UNA
|
Public Member Functions | |
__construct (&$oConfig, &$oDb) | |
addLocationBase () | |
unit ($aData, $isCheckPrivateContent=true, $mixedTemplate=false, $aParams=[]) | |
unitAPI ($aData, $aParams=[]) | |
unitVars ($aData, $isCheckPrivateContent=true, $mixedTemplate=false, $aParams=[]) | |
isProfilePublic ($aData) | |
getSnippetMenuVars ($iProfileId, $bPublic=null, $aParams=[]) | |
getBlockCover ($aData, $aParams=[]) | |
prepareCover ($aData, $aParams=[]) | |
setCover ($oPage, $aData, $sTemplateName='cover.html') | |
avatar ($aData, $bSubstituteNoImage=true) | |
thumb ($aData, $bSubstituteNoImage=true) | |
icon ($aData, $bSubstituteNoImage=true) | |
urlIcon ($aData, $bSubstituteNoImage=true) | |
urlThumb ($aData, $bSubstituteNoImage=true) | |
urlAvatar ($aData, $bSubstituteNoImage=true) | |
urlAvatarBig ($aData, $bSubstituteNoImage=true) | |
urlPicture ($aData, $bSubstituteNoImage=true) | |
urlCover ($aData, $bSubstituteNoImage=false) | |
urlCoverUnit ($aData, $bSubstituteNoImage=true) | |
_image ($sField, $sTranscodeObject, $sNoImage, $aData, $bSubstituteNoImage=true) | |
Public Member Functions inherited from BxBaseModGeneralTemplate | |
getJsCode ($sType, $aParams=array(), $mixedWrap=true) | |
getTitleAuto ($aData, $iMaxLen=20, $sEllipsisSign='...') | |
getTitle ($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, $sUploader, $sStorage, $sField, $bAllowTweak) | |
addCssJs () | |
Public Member Functions inherited from BxDolModuleTemplate | |
__construct (&$oConfig, &$oDb, $sRootPath=BX_DIRECTORY_PATH_ROOT, $sRootUrl=BX_DOL_URL_ROOT) | |
getModule () | |
init () | |
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 | |
_getUnitClass ($aData, $sTemplateName='unit.html') | |
_getUnitSize ($aData, $sTemplateName='unit.html') | |
_getUnitThumbUrl ($sSize, $aData, $bSubstituteNoImage=true) | |
Protected Member Functions inherited from BxBaseModGeneralTemplate | |
getSummary ($aData, $sTitle='', $sText='', $sUrl='') | |
getAttachmentsImagesTranscoders ($sStorage='') | |
getAttachmentsVideoTranscoders ($sStorage='') | |
getAttachments ($sStorage, $aData, $aParams=array()) | |
_embedChecks ($sStorageKey, $iFileId) | |
Protected Attributes | |
$_sUnitDefault | |
$_sUnitSizeDefault | |
$_sUnitClass | |
$_sUnitClassWithCover | |
$_sUnitClassWoInfo | |
$_sUnitClassWoInfoShowCase | |
$_sUnitClassShowCase | |
$_bLetterAvatar | |
Protected Attributes inherited from BxBaseModGeneralTemplate | |
$MODULE | |
$_bIsApi | |
Protected Attributes inherited from BxDolModuleTemplate | |
$_oDb | |
$_oConfig | |
$_bObStarted = 0 | |
$_oModule | |
Additional Inherited Members | |
Public Attributes inherited from BxBaseModGeneralTemplate | |
$aMethodsToCallAddJsCss = array('entry', 'unit') | |
BxBaseModProfileTemplate::__construct | ( | & | $oConfig, |
& | $oDb ) |
Reimplemented from BxBaseModGeneralTemplate.
BxBaseModProfileTemplate::_image | ( | $sField, | |
$sTranscodeObject, | |||
$sNoImage, | |||
$aData, | |||
$bSubstituteNoImage = true ) |
Get profile picture icon url
BxBaseModProfileTemplate::addLocationBase | ( | ) |
Reimplemented from BxBaseModGeneralTemplate.
BxBaseModProfileTemplate::avatar | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile picture thumb url
BxBaseModProfileTemplate::icon | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile picture thumb url
BxBaseModProfileTemplate::prepareCover | ( | $aData, | |
$aParams = [] ) |
system
image_editor
module
- [string] module namecontent_id
- [int] profile content idis_allow_edit
- [boolean] if edit action is allowed to current userimage_type
- [string] image type equals to cover
image_url
- [string] image URLuploader
- [string] uploader namestorage
- [string] storage nametranscoder
- [string] transcoder namefield
- [string] field nameis_background
- [boolean] if image is used as background, always true
add_class
- [string] by ref, class to add, can be overridden in hook processingadd_code
- [array] by ref, code to add, can be overridden in hook processing
system
image_editor
module
- [string] module namecontent_id
- [int] profile content idis_allow_edit
- [boolean] if edit action is allowed to current userimage_type
- [string] image type equals to avatar
image_url
- [string] image URLuploader
- [string] uploader namestorage
- [string] storage nametranscoder
- [string] transcoder namefield
- [string] field nameis_background
- [boolean] if image used is as background, always false
add_class
- [string] by ref, class to add, can be overridden in hook processingadd_code
- [array] by ref, code to add, can be overridden in hook processing
BxBaseModProfileTemplate::setCover | ( | $oPage, | |
$aData, | |||
$sTemplateName = 'cover.html' ) |
Get profile cover
BxBaseModProfileTemplate::thumb | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile picture thumb url
BxBaseModProfileTemplate::unit | ( | $aData, | |
$isCheckPrivateContent = true, | |||
$mixedTemplate = false, | |||
$aParams = [] ) |
Get profile unit
Allow use separate template for private profiles. These templates will be used if privacy field "Visible to" don't allow to view content. To use them you need to create a template with a postfix "_private" and put it in specified module Example: "unit_private.html" for "unit.html" or "unit_wo_links_private.html" for "unit_wo_links.html"
profile
unit
module
- [string] module namedata
- [array] profile info array as key&value pairscheck_private_content
- [boolean] check if it's a provate profiletemplate
- [string] or [array] with template for profile unitparams
- [array] additional params array as key&value pairstmpl_name
- [string] by ref, template name, can be overridden in hook processingtmpl_vars
- [array] by ref, template parsable variables as key&value pairs, can be overridden in hook processing
It's equivalent to 'profile', 'unit' - hook to override profile browsing unit
BxBaseModProfileTemplate::urlAvatar | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile avatar url
BxBaseModProfileTemplate::urlAvatarBig | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile avatar big url
BxBaseModProfileTemplate::urlCover | ( | $aData, | |
$bSubstituteNoImage = false ) |
Get profile cover image url
BxBaseModProfileTemplate::urlCoverUnit | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile cover image url for browse unit
BxBaseModProfileTemplate::urlIcon | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile picture icon url
BxBaseModProfileTemplate::urlPicture | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile picture url
BxBaseModProfileTemplate::urlThumb | ( | $aData, | |
$bSubstituteNoImage = true ) |
Get profile thumb url