/**
* 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
*/
public function getObjects($subtype = "", $limit = 10, $offset = 0) {
- get_site_objects($this->getGUID(), $subtype, $limit, $offset);
+ return get_site_objects($this->getGUID(), $subtype, $limit, $offset);
}
/**
* @param int $offset Offset
*
* @return unknown
- * @todo Unimplemented
+ * @deprecated 1.8 Was never implemented
*/
public function getCollections($subtype = "", $limit = 10, $offset = 0) {
+ elgg_deprecated_notice("ElggSite::getCollections() is deprecated", 1.8);
get_site_collections($this->getGUID(), $subtype, $limit, $offset);
}
* @link http://docs.elgg.org/Tutorials/WalledGarden
*
* @return void
+ * @since 1.8.0
*/
public function checkWalledGarden() {
global $CONFIG;
* @param string $url Defaults to the current URL.
*
* @return bool
+ * @since 1.8.0
*/
public function isPublicPage($url = '') {
global $CONFIG;
*/
function get_site_objects($site_guid, $subtype = "", $limit = 10, $offset = 0) {
$site_guid = (int)$site_guid;
- $subtype = sanitise_string($subtype);
$limit = (int)$limit;
$offset = (int)$offset;