/**
  * Return sites that this object is a member of
  *
  * Site membership is determined by relationships and not site_guid.d
  *
  * @todo This should be moved to ElggEntity
  * @todo Unimplemented
  *
  * @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
  *
  * @return array|false
  */
 function getSites($subtype = "", $limit = 10, $offset = 0)
 {
     return get_site_objects($this->getGUID(), $subtype, $limit, $offset);
 }
Пример #2
0
 /**
  * Returns an array of \ElggObject entities that belong to the site.
  *
  * @warning This only returns objects that have been explicitly added to the
  * site through addObject()
  *
  * @param string $subtype Entity subtype
  * @param int    $limit   Limit
  * @param int    $offset  Offset
  *
  * @return array
  * @deprecated 1.9 Use \ElggSite:getEntities()
  */
 public function getObjects($subtype = "", $limit = 10, $offset = 0)
 {
     elgg_deprecated_notice('\\ElggSite::getObjects() is deprecated. Use \\ElggSite::getEntities()', 1.9);
     return get_site_objects($this->getGUID(), $subtype, $limit, $offset);
 }
Пример #3
0
 /**
  * Return sites that this object is a member of
  *
  * Site membership is determined by relationships and not site_guid.
  *
  * @todo Moved to \ElggEntity so remove this in 2.0
  *
  * @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('\\ElggObject::getSites() takes an options array', 1.9);
         return get_site_objects($this->getGUID(), $options, $limit, $offset);
     }
     return parent::getSites();
 }
Пример #4
0
 /**
  * Get an array of member ElggObjects.
  *
  * @param string $subtype
  * @param int $limit
  * @param int $offset
  */
 public function getObjects($subtype = "", $limit = 10, $offset = 0)
 {
     get_site_objects($this->getGUID(), $subtype, $limit, $offset);
 }