本文整理匯總了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);
}