PHP Class BxSitesModule, dolphin.pro

This module allow users to post description sites, users can rate, comment, discuss it. Profile's Wall: 'add site' site are displayed in profile's wall Spy: 'add site' site is displayed in spy Memberships/ACL: sites view - BX_SITES_VIEW sites browse - BX_SITES_BROWSE sites edit any site - BX_SITES_EDIT_ANY_SITE sites delete any site - BX_SITES_DELETE_ANY_SITE sites mark as featured - BX_SITES_MARK_AS_FEATURED Alerts: Alerts type/unit - 'bx_sites' The following alerts are rised add - new site was added $iObjectId - site id $iSenderId - creator of an site $aExtras['Status'] - status of added site change - site's info was changed $iObjectId - site id $iSenderId - editor user id $aExtras['Status'] - status of changed site delete - site was deleted $iObjectId - site id $iSenderId - deleter user id mark_as_featured - site was marked/unmarked as featured $iObjectId - site id $iSenderId - performer id $aExtras['Featured'] - 1 - if site was marked as featured and 0 - if site was removed from featured Using service for get thumbnail sites 1. Register on site "http://www.shrinktheweb.com" 2. Login and get "Access Key ID" and "Secret Key"(see in block "Website Thumbnails" section "Your Access Keys") 3. Insert them in Administration -> Extensions -> Sites -> Settings "Access key id" and "Password" respectively
Inheritance: extends BxDolTwigModule
ファイルを表示 Open project: boonex/dolphin.pro

Public Properties

Property Type Description
$_sPrefix
$iOwnerId
$oPrivacy
$sHomePath
$sHomeUrl BEGIN STW INTEGRATION
$sModuleUrl
$sThumbPath
$sThumbUrl

Public Methods

Method Description
__construct ( $aModule ) Constructor
_actionAdministrationAdd ( )
_actionAdministrationManage ( $isAdminEntries ) private functions
_actionAdministrationSettings ( )
_addSiteForm ( )
_addThumbToForm ( $sThumbHTML, &$aParam ) BEGIN STW INTEGRATION
_defineActions ( )
_getSitesIndex ( ) END STW INTEGRATION
_getSitesProfile ( $sNickName )
_manageSites ( $sMode, $sValue, $aButtons )
actionAdd ( )
actionAdministration ( $sUrl = '' )
actionBrowse ( $sMode = '', $sValue = '', $sValue2 = '', $sValue3 = '' )
actionCalendar ( $iYear = '', $iMonth = '' )
actionCategories ( )
actionDelete ( $iSiteId )
actionDeleteProfileSites ( $iProfileId )
actionEdit ( $iSiteId )
actionFeatured ( $iSiteId )
actionHome ( )
actionHon ( )
actionIndex ( )
actionProfile ( $sNickName )
actionSearch ( )
actionShare ( $iSiteId )
actionSharePopup ( $iSiteId )
actionTags ( )
actionView ( $mixedVar )
browseMy ( $aProfile, $sValue = '' )
clearSiteThumbCache ( )
deleteSite ( $iSiteId )
isAdmin ( )
isAllowedAdd ( $isPerformAction = false )
isAllowedBrowse ( $isPerformAction = false )
isAllowedDelete ( &$aSite, $isPerformAction = false )
isAllowedEdit ( $aSite, $isPerformAction = false )
isAllowedMarkAsFeatured ( $aSite, $isPerformAction = false )
isAllowedSearch ( $isPerformAction = false )
isAllowedShare ( &$aDataEntry )
isAllowedView ( $aSite, $isPerformAction = false )
onSiteChanged ( $iSiteId, $sStatus )
onSiteCreate ( $iSiteId, $sStatus ) ================================== events
onSiteDeleted ( $iSiteId )
onSiteMarkAsFeatured ( $aSite )
refreshSiteThumb ( $iSiteId ) BEGIN STW INTEGRATION
reparseCategories ( $iSiteId )
reparseTags ( $iSiteId ) ================================== tags/cats reparse functions
serviceGetMemberMenuItem ( )
serviceGetMemberMenuItemAddContent ( )
serviceGetSpyData ( )
serviceGetSpyPost ( $sAction, $iObjectId, $iSenderId, $aExtraParams = [] )
serviceGetSubscriptionParams ( $sAction, $iEntryId )
serviceGetWallAddComment ( $aEvent )
serviceGetWallPost ( $aEvent )
serviceGetWallPostComment ( $aEvent ) DEPRICATED, saved for backward compatibility
serviceGetWallPostOutline ( $aEvent )
serviceIndexBlock ( ) Service methods
serviceProfileBlock ( $sNickName )
setStatusSite ( $iSiteId, $sStatus ) END STW INTEGRATION

Method Details

__construct() public method

Constructor
public __construct ( $aModule )

_actionAdministrationAdd() public method

_actionAdministrationManage() public method

private functions
public _actionAdministrationManage ( $isAdminEntries )

_actionAdministrationSettings() public method

_addSiteForm() public method

public _addSiteForm ( )

_addThumbToForm() public method

BEGIN STW INTEGRATION
public _addThumbToForm ( $sThumbHTML, &$aParam )

_defineActions() public method

public _defineActions ( )

_getSitesIndex() public method

END STW INTEGRATION
public _getSitesIndex ( )

_getSitesProfile() public method

public _getSitesProfile ( $sNickName )

_manageSites() public method

public _manageSites ( $sMode, $sValue, $aButtons )

actionAdd() public method

public actionAdd ( )

actionAdministration() public method

public actionAdministration ( $sUrl = '' )

actionBrowse() public method

public actionBrowse ( $sMode = '', $sValue = '', $sValue2 = '', $sValue3 = '' )

actionCalendar() public method

public actionCalendar ( $iYear = '', $iMonth = '' )

actionCategories() public method

public actionCategories ( )

actionDelete() public method

public actionDelete ( $iSiteId )

actionDeleteProfileSites() public method

public actionDeleteProfileSites ( $iProfileId )

actionEdit() public method

public actionEdit ( $iSiteId )

actionFeatured() public method

public actionFeatured ( $iSiteId )

actionHome() public method

public actionHome ( )

actionHon() public method

public actionHon ( )

actionIndex() public method

public actionIndex ( )

actionProfile() public method

public actionProfile ( $sNickName )

actionSearch() public method

public actionSearch ( )

actionShare() public method

public actionShare ( $iSiteId )

actionSharePopup() public method

public actionSharePopup ( $iSiteId )

actionTags() public method

public actionTags ( )

actionView() public method

public actionView ( $mixedVar )

browseMy() public method

public browseMy ( $aProfile, $sValue = '' )

clearSiteThumbCache() public method

public clearSiteThumbCache ( )

deleteSite() public method

public deleteSite ( $iSiteId )

isAdmin() public method

public isAdmin ( )

isAllowedAdd() public method

public isAllowedAdd ( $isPerformAction = false )

isAllowedBrowse() public method

public isAllowedBrowse ( $isPerformAction = false )

isAllowedDelete() public method

public isAllowedDelete ( &$aSite, $isPerformAction = false )

isAllowedEdit() public method

public isAllowedEdit ( $aSite, $isPerformAction = false )

isAllowedMarkAsFeatured() public method

public isAllowedMarkAsFeatured ( $aSite, $isPerformAction = false )

isAllowedSearch() public method

public isAllowedSearch ( $isPerformAction = false )

isAllowedShare() public method

public isAllowedShare ( &$aDataEntry )

isAllowedView() public method

public isAllowedView ( $aSite, $isPerformAction = false )

onSiteChanged() public method

public onSiteChanged ( $iSiteId, $sStatus )

onSiteCreate() public method

================================== events
public onSiteCreate ( $iSiteId, $sStatus )

onSiteDeleted() public method

public onSiteDeleted ( $iSiteId )

onSiteMarkAsFeatured() public method

public onSiteMarkAsFeatured ( $aSite )

refreshSiteThumb() public method

BEGIN STW INTEGRATION
public refreshSiteThumb ( $iSiteId )

reparseCategories() public method

public reparseCategories ( $iSiteId )

reparseTags() public method

================================== tags/cats reparse functions
public reparseTags ( $iSiteId )

serviceGetMemberMenuItem() public method

serviceGetMemberMenuItemAddContent() public method

serviceGetSpyData() public method

public serviceGetSpyData ( )

serviceGetSpyPost() public method

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

serviceGetSubscriptionParams() public method

public serviceGetSubscriptionParams ( $sAction, $iEntryId )

serviceGetWallAddComment() public method

public serviceGetWallAddComment ( $aEvent )

serviceGetWallPost() public method

public serviceGetWallPost ( $aEvent )

serviceGetWallPostComment() public method

DEPRICATED, saved for backward compatibility
public serviceGetWallPostComment ( $aEvent )

serviceGetWallPostOutline() public method

public serviceGetWallPostOutline ( $aEvent )

serviceIndexBlock() public method

Service methods
public serviceIndexBlock ( )

serviceProfileBlock() public method

public serviceProfileBlock ( $sNickName )

setStatusSite() public method

END STW INTEGRATION
public setStatusSite ( $iSiteId, $sStatus )

Property Details

$_sPrefix public_oe property

public $_sPrefix

$iOwnerId public_oe property

public $iOwnerId

$oPrivacy public_oe property

public $oPrivacy

$sHomePath public_oe property

public $sHomePath

$sHomeUrl public_oe property

BEGIN STW INTEGRATION
public $sHomeUrl

$sModuleUrl public_oe property

public $sModuleUrl

$sThumbPath public_oe property

public $sThumbPath

$sThumbUrl public_oe property

public $sThumbUrl