PHP Class BxWallModule, dolphin.pro

Inheritance: extends BxDolModule
Show file Open project: boonex/dolphin.pro Class Usage Examples

Public Properties

Property Type Description
$_aPostElements
$_iOwnerId
$_sBalloonTemplate
$_sCmtPostTemplate
$_sCmtTemplate
$_sCmtViewTemplate
$_sDividerTemplate

Public Methods

Method Description
__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 )

Method Details

__construct() public method

Constructor
public __construct ( $aModule )

_addHidden() public method

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

_echoResultJson() public method

public _echoResultJson ( $a, $isAutoWrapForFormFileSubmit = false )

_getAuthorId() public method

public _getAuthorId ( )

_getAuthorIp() public method

public _getAuthorIp ( )

_getAuthorPassword() public method

public _getAuthorPassword ( )

_getLoadMore() public method

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

_getLoadMoreOutline() public method

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

_getObjectPrivacy() public method

public _getObjectPrivacy ( )

_getObjectVoting() public method

public _getObjectVoting ( $aEvent )

_getObjectVotingDefault() public method

public _getObjectVotingDefault ( $iEventId )

_getPaginate() public method

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

_getPostTabs() public method

public _getPostTabs ( $sType )

_getPosts() public method

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

_getPostsOutline() public method

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

_getShareLinkForm() public method

public _getShareLinkForm ( $sGetFormArrayMethod = '_getShareLinkFormCommon' )

_getShareLinkFormCommon() public method

_getShareLinkFormIndex() public method

_getTimeline() public method

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

_getWriteForm() public method

public _getWriteForm ( $sGetFormArrayMethod = '_getWriteFormCommon' )

_getWriteFormCommon() public method

public _getWriteFormCommon ( )

_getWriteFormIndex() public method

public _getWriteFormIndex ( )

_isCommentDeleteAllowed() public method

public _isCommentDeleteAllowed ( $aEvent, $bPerform = false )

_isCommentPostAllowed() public method

public _isCommentPostAllowed ( $bPerform = false )

_isRepostAllowed() public method

public _isRepostAllowed ( $aEvent, $bPerform = false )

_isViewAllowed() public method

public _isViewAllowed ( )

_processLinkUpload() public method

public _processLinkUpload ( )

_processTextUpload() public method

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

actionDelete() public method

Delete post from the wall. Allow to wall owner only.
public actionDelete ( ) : string
return string with JavaScript code.

actionGetPaginate() public method

Get paginate content.
public actionGetPaginate ( ) : string
return string with paginate.

actionGetPost() public method

Get post content.
public actionGetPost ( ) : string
return string with post.

actionGetPosts() public method

Get posts content.
public actionGetPosts ( ) : string
return string with posts.

actionGetPostsOutline() public method

Get posts content (Outline).
public actionGetPostsOutline ( ) : string
return string with posts.

actionGetRepostedBy() public method

Get popup with profiles.
public actionGetRepostedBy ( ) : string
return string with popup.

actionGetTimeline() public method

Get timeline content.
public actionGetTimeline ( ) : string
return string with paginate.

actionGetUploader() public method

Get photo/sound/video uploading form.
public actionGetUploader ( $iOwnerId, $sType, $sSubType = '' ) : string
return string with form.

actionPost() public method

ACTION METHODS Post somthing on the wall.
public actionPost ( ) : string
return string with JavaScript code.

actionRepost() public method

public actionRepost ( )

actionRss() public method

Get RSS for specified owner.
public actionRss ( string $sUsername ) : string
$sUsername string wall owner username
return string with RSS.

getRepostedLanguageKey() public method

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

getSettingsForm() public method

Admin Settings Methods
public getSettingsForm ( $mixedResult )

onDelete() public method

public onDelete ( $aEvent )

onPost() public method

public onPost ( $iId )

onRepost() public method

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

serviceGetActionsChecklist() public method

public serviceGetActionsChecklist ( $sType )

serviceGetMemberMenuItem() public method

serviceGetRepostCounter() public method

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

serviceGetRepostElementBlock() public method

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

serviceGetRepostJsClick() public method

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

serviceGetRepostJsScript() public method

serviceGetSpyData() public method

public serviceGetSpyData ( )

serviceGetSpyPost() public method

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

serviceGetSubscriptionParams() public method

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

serviceGetUploadersChecklist() public method

public serviceGetUploadersChecklist ( $sType )

servicePostBlockIndexTimeline() public method

Display Post block on home page.
public servicePostBlockIndexTimeline ( $sType = 'id' ) : array
return array containing block info.

servicePostBlockProfileTimeline() public method

Display Post block on profile page.
public servicePostBlockProfileTimeline ( integer $mixed, $sType = 'id' ) : array
$mixed integer - owner ID or Username.
return array containing block info.

serviceResponse() public method

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

serviceUpdateHandlers() public method

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

serviceViewBlockAccountTimeline() public method

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

serviceViewBlockIndexOutline() public method

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

serviceViewBlockIndexTimeline() public method

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

serviceViewBlockProfileTimeline() public method

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

setSettings() public method

public setSettings ( $aData )

Property Details

$_aPostElements public property

public $_aPostElements

$_iOwnerId public property

public $_iOwnerId

$_sBalloonTemplate public property

public $_sBalloonTemplate

$_sCmtPostTemplate public property

public $_sCmtPostTemplate

$_sCmtTemplate public property

public $_sCmtTemplate

$_sCmtViewTemplate public property

public $_sCmtViewTemplate

$_sDividerTemplate public property

public $_sDividerTemplate