本文整理汇总了PHP中defineMembershipActions函数的典型用法代码示例。如果您正苦于以下问题:PHP defineMembershipActions函数的具体用法?PHP defineMembershipActions怎么用?PHP defineMembershipActions使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了defineMembershipActions函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*/
function __construct($aModule)
{
parent::__construct($aModule);
$this->_oConfig->init($this->_oDb);
$this->_oTemplate->init($this);
$this->_iOwnerId = 0;
//--- Define Membership Actions ---//
defineMembershipActions(array('timeline repost', 'timeline post comment', 'timeline delete comment'), 'ACTION_ID_');
}
示例2: BxWallModule
/**
* Constructor
*/
function BxWallModule($aModule)
{
parent::BxDolModule($aModule);
$this->_oConfig->init($this->_oDb);
$this->_oTemplate->init($this);
$this->_iOwnerId = 0;
$this->_sJsPostObject = $this->_oConfig->getJsObject('post');
$this->_sJsViewObject = $this->_oConfig->getJsObject('view');
$this->_sJsOutlineObject = $this->_oConfig->getJsObject('outline');
//--- Define Membership Actions ---//
defineMembershipActions(array('timeline post comment', 'timeline delete comment'), 'ACTION_ID_');
}
示例3: BxWallModule
/**
* Constructor
*/
function BxWallModule($aModule)
{
parent::BxDolModule($aModule);
$this->_oConfig->init($this->_oDb);
$this->_bJsMode = false;
$this->_iOwnerId = 0;
$this->_aHandlers = array();
foreach ($this->_oDb->getHandlers() as $aHandler) {
$this->_aHandlers[$aHandler['alert_unit'] . '_' . $aHandler['alert_action']] = $aHandler;
}
$this->_sJsPostObject = 'oWallPost';
$this->_sJsViewObject = 'oWallView';
//--- Define Membership Actions ---//
defineMembershipActions(array('wall post comment', 'wall delete comment'), 'ACTION_ID_');
}
示例4: __construct
/**
* Constructor
*/
function __construct($aModule)
{
parent::__construct($aModule);
//--- Define Membership Actions ---//
defineMembershipActions(array('feedback delete'), 'ACTION_ID_');
}
示例5: _defineActions
function _defineActions()
{
defineMembershipActions(array('groups view group', 'groups browse', 'groups search', 'groups add group', 'groups comments delete and edit', 'groups edit any group', 'groups delete any group', 'groups mark as featured', 'groups approve groups', 'groups broadcast message'));
}
示例6: _defineActions
function _defineActions()
{
defineMembershipActions(array('use simple messenger'));
}
示例7: _defineActions
function _defineActions()
{
defineMembershipActions(array('avatar upload', 'avatar edit any', 'avatar delete any'));
}
示例8: _isMembershipEnabledFor
function _isMembershipEnabledFor($iProfileId, $sMembershipActionConstant, $isPerformAction = false)
{
defineMembershipActions(array('photos add', 'photos view', 'sounds view', 'videos view'));
if (!defined($sMembershipActionConstant)) {
return false;
}
$aCheck = checkAction($iProfileId ? $iProfileId : $_COOKIE['memberID'], constant($sMembershipActionConstant), $isPerformAction);
return $aCheck[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED;
}
示例9: BxArlModule
/**
* Constructor
*/
function BxArlModule($aModule)
{
parent::BxDolTextModule($aModule);
//--- Define Membership Actions ---//
defineMembershipActions(array('articles delete'), 'ACTION_ID_');
}
示例10: defineForumActions
function defineForumActions()
{
defineMembershipActions(array('forum public read', 'forum public post', 'forum private read', 'forum private post', 'forum search', 'forum edit all', 'forum delete all', 'forum make sticky', 'forum del topics', 'forum move topics', 'forum hide topics', 'forum unhide topics', 'forum hide posts', 'forum unhide posts', 'forum files download'));
}
示例11: _defineActions
/**
* Define all membership actions
*
* @return void
*/
function _defineActions()
{
defineMembershipActions(array('shoutbox use', 'shoutbox delete messages', 'shoutbox block by ip'));
}
示例12: BxFdbModule
/**
* Constructor
*/
function BxFdbModule($aModule)
{
parent::BxDolTextModule($aModule);
//--- Define Membership Actions ---//
defineMembershipActions(array('feedback delete'), 'ACTION_ID_');
}
示例13: _defineActions
function _defineActions()
{
defineMembershipActions(array('clonetwo view clonetwo', 'clonetwo browse', 'clonetwo search', 'clonetwo add clonetwo', 'clonetwo comments delete and edit', 'clonetwo edit any clonetwo', 'clonetwo delete any clonetwo', 'clonetwo mark as featured', 'clonetwo approve clonetwo', 'clonetwo broadcast message'), 'ML_');
}
示例14: _defineActions
function _defineActions()
{
defineMembershipActions(array('ads view', 'ads browse', 'ads search', 'ads add', 'ads edit any ad', 'ads delete any ad', 'ads approving'));
}
示例15: _defineActions
function _defineActions()
{
$aActionList = $this->_defineActionsArray();
defineMembershipActions($aActionList);
}