本文整理汇总了PHP中remove_site_user函数的典型用法代码示例。如果您正苦于以下问题:PHP remove_site_user函数的具体用法?PHP remove_site_user怎么用?PHP remove_site_user使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了remove_site_user函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: removeFromSite
/**
* Remove this user from a particular site
*
* @param int $site_guid The guid of the site to remove it from
* @return true|false
*/
function removeFromSite($site_guid)
{
//return remove_site_user($this->getGUID(), $site_guid);
return remove_site_user($site_guid, $this->getGUID());
}
示例2: removeUser
/**
* Removes a user from the site.
*
* @param int $user_guid GUID
*
* @return bool
*/
public function removeUser($user_guid)
{
return remove_site_user($this->getGUID(), $user_guid);
}
示例3: removeFromSite
/**
* Remove this user from a particular site
*
* @param \ElggSite $site The site to remove the user from. Used to be site GUID
*
* @return bool
*/
public function removeFromSite($site)
{
if (is_numeric($site)) {
elgg_deprecated_notice('\\ElggUser::removeFromSite() takes a site entity', 1.9);
return remove_site_user($site, $this->guid);
}
return parent::removeFromSite($site);
}
示例4: removeUser
/**
* Removes a user from the site.
*
* @param int $user_guid GUID
*
* @return bool
* @deprecated 1.9 Use \ElggSite::removeEntity()
*/
public function removeUser($user_guid)
{
elgg_deprecated_notice('\\ElggSite::removeUser() is deprecated. Use \\ElggEntity::removeEntity()', 1.9);
return remove_site_user($this->getGUID(), $user_guid);
}