/**
  * Get sites that this user is a member of
  *
  * @param string $subtype Optionally, the subtype of result we want to limit to
  * @param int $limit The number of results to return
  * @param int $offset Any indexing offset
  */
 function getSites($subtype = "", $limit = 10, $offset = 0)
 {
     // return get_site_users($this->getGUID(), $subtype, $limit, $offset);
     return get_user_sites($this->getGUID(), $subtype, $limit, $offset);
 }
Example #2
0
 /**
  * Get sites that this user is a member of
  *
  * @param array $options Options array. Used to be $subtype
  * @param int   $limit   The number of results to return (deprecated)
  * @param int   $offset  Any indexing offset (deprecated)
  *
  * @return array
  */
 public function getSites($options = "", $limit = 10, $offset = 0)
 {
     if (is_string($options)) {
         elgg_deprecated_notice('\\ElggUser::getSites() takes an options array', 1.9);
         return get_user_sites($this->getGUID(), $limit, $offset);
     }
     return parent::getSites($options);
 }