/**
  * 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());
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
 }