Example #1
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);
 }