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
Afficher le fichier Open project: boonex/dolphin.pro

Méthodes publiques

Свойство Type Description
$_sPrefix
$iOwnerId
$oPrivacy
$sHomePath
$sHomeUrl BEGIN STW INTEGRATION
$sModuleUrl
$sThumbPath
$sThumbUrl

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( $aModule )

_actionAdministrationAdd() public méthode

_actionAdministrationManage() public méthode

private functions
public _actionAdministrationManage ( $isAdminEntries )

_actionAdministrationSettings() public méthode

_addSiteForm() public méthode

public _addSiteForm ( )

_addThumbToForm() public méthode

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

_defineActions() public méthode

public _defineActions ( )

_getSitesIndex() public méthode

END STW INTEGRATION
public _getSitesIndex ( )

_getSitesProfile() public méthode

public _getSitesProfile ( $sNickName )

_manageSites() public méthode

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

actionAdd() public méthode

public actionAdd ( )

actionAdministration() public méthode

public actionAdministration ( $sUrl = '' )

actionBrowse() public méthode

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

actionCalendar() public méthode

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

actionCategories() public méthode

public actionCategories ( )

actionDelete() public méthode

public actionDelete ( $iSiteId )

actionDeleteProfileSites() public méthode

public actionDeleteProfileSites ( $iProfileId )

actionEdit() public méthode

public actionEdit ( $iSiteId )

actionFeatured() public méthode

public actionFeatured ( $iSiteId )

actionHome() public méthode

public actionHome ( )

actionHon() public méthode

public actionHon ( )

actionIndex() public méthode

public actionIndex ( )

actionProfile() public méthode

public actionProfile ( $sNickName )

actionSearch() public méthode

public actionSearch ( )

actionShare() public méthode

public actionShare ( $iSiteId )

actionSharePopup() public méthode

public actionSharePopup ( $iSiteId )

actionTags() public méthode

public actionTags ( )

actionView() public méthode

public actionView ( $mixedVar )

browseMy() public méthode

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

clearSiteThumbCache() public méthode

public clearSiteThumbCache ( )

deleteSite() public méthode

public deleteSite ( $iSiteId )

isAdmin() public méthode

public isAdmin ( )

isAllowedAdd() public méthode

public isAllowedAdd ( $isPerformAction = false )

isAllowedBrowse() public méthode

public isAllowedBrowse ( $isPerformAction = false )

isAllowedDelete() public méthode

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

isAllowedEdit() public méthode

public isAllowedEdit ( $aSite, $isPerformAction = false )

isAllowedMarkAsFeatured() public méthode

public isAllowedMarkAsFeatured ( $aSite, $isPerformAction = false )

isAllowedSearch() public méthode

public isAllowedSearch ( $isPerformAction = false )

isAllowedShare() public méthode

public isAllowedShare ( &$aDataEntry )

isAllowedView() public méthode

public isAllowedView ( $aSite, $isPerformAction = false )

onSiteChanged() public méthode

public onSiteChanged ( $iSiteId, $sStatus )

onSiteCreate() public méthode

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

onSiteDeleted() public méthode

public onSiteDeleted ( $iSiteId )

onSiteMarkAsFeatured() public méthode

public onSiteMarkAsFeatured ( $aSite )

refreshSiteThumb() public méthode

BEGIN STW INTEGRATION
public refreshSiteThumb ( $iSiteId )

reparseCategories() public méthode

public reparseCategories ( $iSiteId )

reparseTags() public méthode

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

serviceGetMemberMenuItem() public méthode

serviceGetMemberMenuItemAddContent() public méthode

serviceGetSpyData() public méthode

public serviceGetSpyData ( )

serviceGetSpyPost() public méthode

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

serviceGetSubscriptionParams() public méthode

public serviceGetSubscriptionParams ( $sAction, $iEntryId )

serviceGetWallAddComment() public méthode

public serviceGetWallAddComment ( $aEvent )

serviceGetWallPost() public méthode

public serviceGetWallPost ( $aEvent )

serviceGetWallPostComment() public méthode

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

serviceGetWallPostOutline() public méthode

public serviceGetWallPostOutline ( $aEvent )

serviceIndexBlock() public méthode

Service methods
public serviceIndexBlock ( )

serviceProfileBlock() public méthode

public serviceProfileBlock ( $sNickName )

setStatusSite() public méthode

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