PHP Класс BxWallModule, dolphin.pro

Наследование: extends BxDolModule
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_aPostElements
$_iOwnerId
$_sBalloonTemplate
$_sCmtPostTemplate
$_sCmtTemplate
$_sCmtViewTemplate
$_sDividerTemplate

Открытые методы

Метод Описание
__construct ( $aModule ) Constructor
_addHidden ( $sPostType = "photos", $sContentType = "upload", $sAction = "post" )
_echoResultJson ( $a, $isAutoWrapForFormFileSubmit = false )
_getAuthorId ( )
_getAuthorIp ( )
_getAuthorPassword ( )
_getLoadMore ( $iStart, $iPerPage, $bEnabled = true, $bVisible = true )
_getLoadMoreOutline ( $iStart, $iPerPage, $bEnabled = true, $bVisible = true )
_getObjectPrivacy ( )
_getObjectVoting ( $aEvent )
_getObjectVotingDefault ( $iEventId )
_getPaginate ( $sFilter, $sTimeline, $aModules )
_getPostTabs ( $sType )
_getPosts ( $sOrder, $iStart, $iPerPage, $sFilter, $sTimeline, $aModules )
_getPostsOutline ( $sOrder, $iStart, $iPerPage, $sFilter, $aModules )
_getShareLinkForm ( $sGetFormArrayMethod = '_getShareLinkFormCommon' )
_getShareLinkFormCommon ( )
_getShareLinkFormIndex ( )
_getTimeline ( $iStart, $iPerPage, $sFilter, $sTimeline, $aModules ) Private Methods Is used for content displaying
_getWriteForm ( $sGetFormArrayMethod = '_getWriteFormCommon' )
_getWriteFormCommon ( )
_getWriteFormIndex ( )
_isCommentDeleteAllowed ( $aEvent, $bPerform = false )
_isCommentPostAllowed ( $bPerform = false )
_isRepostAllowed ( $aEvent, $bPerform = false )
_isViewAllowed ( )
_processLinkUpload ( )
_processTextUpload ( ) Private Methods Is used for actions processing.
actionDelete ( ) : string Delete post from the wall. Allow to wall owner only.
actionGetPaginate ( ) : string Get paginate content.
actionGetPost ( ) : string Get post content.
actionGetPosts ( ) : string Get posts content.
actionGetPostsOutline ( ) : string Get posts content (Outline).
actionGetRepostedBy ( ) : string Get popup with profiles.
actionGetTimeline ( ) : string Get timeline content.
actionGetUploader ( $iOwnerId, $sType, $sSubType = '' ) : string Get photo/sound/video uploading form.
actionPost ( ) : string ACTION METHODS Post somthing on the wall.
actionRepost ( )
actionRss ( string $sUsername ) : string Get RSS for specified owner.
getRepostedLanguageKey ( $sType, $sAction, $mixedObjectId, $bTitle = false )
getSettingsForm ( $mixedResult ) Admin Settings Methods
onDelete ( $aEvent )
onPost ( $iId )
onRepost ( $iId, $aReposted = [] )
serviceGetActionsChecklist ( $sType )
serviceGetMemberMenuItem ( )
serviceGetRepostCounter ( $sType, $sAction, $iObjectId, $aParams = [] )
serviceGetRepostElementBlock ( $iOwnerId, $sType, $sAction, $iObjectId, $aParams = [] )
serviceGetRepostJsClick ( $iOwnerId, $sType, $sAction, $iObjectId )
serviceGetRepostJsScript ( )
serviceGetSpyData ( )
serviceGetSpyPost ( $sAction, $iObjectId, $iSenderId, $aExtraParams = [] )
serviceGetSubscriptionParams ( $sUnit, $sAction, $iObjectId )
serviceGetUploadersChecklist ( $sType )
servicePostBlockIndexTimeline ( $sType = 'id' ) : array Display Post block on home page.
servicePostBlockProfileTimeline ( integer $mixed, $sType = 'id' ) : array Display Post block on profile page.
serviceResponse ( BxDolAlerts $oAlert ) SERVICE METHODS Process alert.
serviceUpdateHandlers ( $sModuleUri = 'all', $bInstall = true )
serviceViewBlockAccountTimeline ( $mixed, $iStart, $iPerPage, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = [] )
serviceViewBlockIndexOutline ( $iStart, $iPerPage, $sFilter = '', $aModules = [] )
serviceViewBlockIndexTimeline ( $iStart, $iPerPage, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = [] )
serviceViewBlockProfileTimeline ( $mixed, $iStart, $iPerPage, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = [] )
setSettings ( $aData )

Описание методов

__construct() публичный Метод

Constructor
public __construct ( $aModule )

_addHidden() публичный Метод

public _addHidden ( $sPostType = "photos", $sContentType = "upload", $sAction = "post" )

_echoResultJson() публичный Метод

public _echoResultJson ( $a, $isAutoWrapForFormFileSubmit = false )

_getAuthorId() публичный Метод

public _getAuthorId ( )

_getAuthorIp() публичный Метод

public _getAuthorIp ( )

_getAuthorPassword() публичный Метод

public _getAuthorPassword ( )

_getLoadMore() публичный Метод

public _getLoadMore ( $iStart, $iPerPage, $bEnabled = true, $bVisible = true )

_getLoadMoreOutline() публичный Метод

public _getLoadMoreOutline ( $iStart, $iPerPage, $bEnabled = true, $bVisible = true )

_getObjectPrivacy() публичный Метод

public _getObjectPrivacy ( )

_getObjectVoting() публичный Метод

public _getObjectVoting ( $aEvent )

_getObjectVotingDefault() публичный Метод

public _getObjectVotingDefault ( $iEventId )

_getPaginate() публичный Метод

public _getPaginate ( $sFilter, $sTimeline, $aModules )

_getPostTabs() публичный Метод

public _getPostTabs ( $sType )

_getPosts() публичный Метод

public _getPosts ( $sOrder, $iStart, $iPerPage, $sFilter, $sTimeline, $aModules )

_getPostsOutline() публичный Метод

public _getPostsOutline ( $sOrder, $iStart, $iPerPage, $sFilter, $aModules )

_getShareLinkForm() публичный Метод

public _getShareLinkForm ( $sGetFormArrayMethod = '_getShareLinkFormCommon' )

_getShareLinkFormCommon() публичный Метод

_getShareLinkFormIndex() публичный Метод

_getTimeline() публичный Метод

Private Methods Is used for content displaying
public _getTimeline ( $iStart, $iPerPage, $sFilter, $sTimeline, $aModules )

_getWriteForm() публичный Метод

public _getWriteForm ( $sGetFormArrayMethod = '_getWriteFormCommon' )

_getWriteFormCommon() публичный Метод

public _getWriteFormCommon ( )

_getWriteFormIndex() публичный Метод

public _getWriteFormIndex ( )

_isCommentDeleteAllowed() публичный Метод

public _isCommentDeleteAllowed ( $aEvent, $bPerform = false )

_isCommentPostAllowed() публичный Метод

public _isCommentPostAllowed ( $bPerform = false )

_isRepostAllowed() публичный Метод

public _isRepostAllowed ( $aEvent, $bPerform = false )

_isViewAllowed() публичный Метод

public _isViewAllowed ( )

_processLinkUpload() публичный Метод

public _processLinkUpload ( )

_processTextUpload() публичный Метод

Private Methods Is used for actions processing.
public _processTextUpload ( )

actionDelete() публичный Метод

Delete post from the wall. Allow to wall owner only.
public actionDelete ( ) : string
Результат string with JavaScript code.

actionGetPaginate() публичный Метод

Get paginate content.
public actionGetPaginate ( ) : string
Результат string with paginate.

actionGetPost() публичный Метод

Get post content.
public actionGetPost ( ) : string
Результат string with post.

actionGetPosts() публичный Метод

Get posts content.
public actionGetPosts ( ) : string
Результат string with posts.

actionGetPostsOutline() публичный Метод

Get posts content (Outline).
public actionGetPostsOutline ( ) : string
Результат string with posts.

actionGetRepostedBy() публичный Метод

Get popup with profiles.
public actionGetRepostedBy ( ) : string
Результат string with popup.

actionGetTimeline() публичный Метод

Get timeline content.
public actionGetTimeline ( ) : string
Результат string with paginate.

actionGetUploader() публичный Метод

Get photo/sound/video uploading form.
public actionGetUploader ( $iOwnerId, $sType, $sSubType = '' ) : string
Результат string with form.

actionPost() публичный Метод

ACTION METHODS Post somthing on the wall.
public actionPost ( ) : string
Результат string with JavaScript code.

actionRepost() публичный Метод

public actionRepost ( )

actionRss() публичный Метод

Get RSS for specified owner.
public actionRss ( string $sUsername ) : string
$sUsername string wall owner username
Результат string with RSS.

getRepostedLanguageKey() публичный Метод

public getRepostedLanguageKey ( $sType, $sAction, $mixedObjectId, $bTitle = false )

getSettingsForm() публичный Метод

Admin Settings Methods
public getSettingsForm ( $mixedResult )

onDelete() публичный Метод

public onDelete ( $aEvent )

onPost() публичный Метод

public onPost ( $iId )

onRepost() публичный Метод

public onRepost ( $iId, $aReposted = [] )

serviceGetActionsChecklist() публичный Метод

public serviceGetActionsChecklist ( $sType )

serviceGetMemberMenuItem() публичный Метод

serviceGetRepostCounter() публичный Метод

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

serviceGetRepostElementBlock() публичный Метод

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

serviceGetRepostJsClick() публичный Метод

public serviceGetRepostJsClick ( $iOwnerId, $sType, $sAction, $iObjectId )

serviceGetRepostJsScript() публичный Метод

serviceGetSpyData() публичный Метод

public serviceGetSpyData ( )

serviceGetSpyPost() публичный Метод

public serviceGetSpyPost ( $sAction, $iObjectId, $iSenderId, $aExtraParams = [] )

serviceGetSubscriptionParams() публичный Метод

public serviceGetSubscriptionParams ( $sUnit, $sAction, $iObjectId )

serviceGetUploadersChecklist() публичный Метод

public serviceGetUploadersChecklist ( $sType )

servicePostBlockIndexTimeline() публичный Метод

Display Post block on home page.
public servicePostBlockIndexTimeline ( $sType = 'id' ) : array
Результат array containing block info.

servicePostBlockProfileTimeline() публичный Метод

Display Post block on profile page.
public servicePostBlockProfileTimeline ( integer $mixed, $sType = 'id' ) : array
$mixed integer - owner ID or Username.
Результат array containing block info.

serviceResponse() публичный Метод

SERVICE METHODS Process alert.
public serviceResponse ( BxDolAlerts $oAlert )
$oAlert BxDolAlerts an instance with accured alert.

serviceUpdateHandlers() публичный Метод

public serviceUpdateHandlers ( $sModuleUri = 'all', $bInstall = true )

serviceViewBlockAccountTimeline() публичный Метод

public serviceViewBlockAccountTimeline ( $mixed, $iStart, $iPerPage, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = [] )

serviceViewBlockIndexOutline() публичный Метод

public serviceViewBlockIndexOutline ( $iStart, $iPerPage, $sFilter = '', $aModules = [] )

serviceViewBlockIndexTimeline() публичный Метод

public serviceViewBlockIndexTimeline ( $iStart, $iPerPage, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = [] )

serviceViewBlockProfileTimeline() публичный Метод

public serviceViewBlockProfileTimeline ( $mixed, $iStart, $iPerPage, $sFilter = '', $sTimeline = '', $sType = 'id', $aModules = [] )

setSettings() публичный Метод

public setSettings ( $aData )

Описание свойств

$_aPostElements публичное свойство

public $_aPostElements

$_iOwnerId публичное свойство

public $_iOwnerId

$_sBalloonTemplate публичное свойство

public $_sBalloonTemplate

$_sCmtPostTemplate публичное свойство

public $_sCmtPostTemplate

$_sCmtTemplate публичное свойство

public $_sCmtTemplate

$_sCmtViewTemplate публичное свойство

public $_sCmtViewTemplate

$_sDividerTemplate публичное свойство

public $_sDividerTemplate