engine/classes/ElggObject.php 1 location
|
@@ 217-224 (lines=8) @@
|
214 |
|
* the site guid (still supported by deprecated) |
215 |
|
* @return bool |
216 |
|
*/ |
217 |
|
public function addToSite($site) { |
218 |
|
if (is_numeric($site)) { |
219 |
|
elgg_deprecated_notice('\ElggObject::addToSite() takes a site entity', 1.9); |
220 |
|
return add_site_object($site, $this->getGUID()); |
221 |
|
} |
222 |
|
|
223 |
|
return parent::addToSite($site); |
224 |
|
} |
225 |
|
|
226 |
|
/** |
227 |
|
* {@inheritdoc} |
engine/classes/ElggUser.php 1 location
|
@@ 378-385 (lines=8) @@
|
375 |
|
* the site guid (still supported by deprecated) |
376 |
|
* @return bool |
377 |
|
*/ |
378 |
|
public function addToSite($site) { |
379 |
|
if (is_numeric($site)) { |
380 |
|
elgg_deprecated_notice('\ElggUser::addToSite() takes a site entity', 1.9); |
381 |
|
return add_site_user($site, $this->getGUID()); |
382 |
|
} |
383 |
|
|
384 |
|
return parent::addToSite($site); |
385 |
|
} |
386 |
|
|
387 |
|
/** |
388 |
|
* Remove this user from a particular site |