24 public function getOwnedAccessCollections(array
$options = []): array {
25 $options[
'owner_guid'] = $this->guid;
41 throw new ElggInvalidArgumentException(__METHOD__ .
' requires $subtype to be non empty');
44 $acls = $this->getOwnedAccessCollections([
57 public function deleteAccessCollectionMemberships() {
62 if ($this->type !==
'user') {
68 $collections = $ac->getCollectionsByMember($this->guid);
69 if (empty($collections)) {
74 foreach ($collections as $collection) {
75 $result &= $ac->removeUser($this->guid, $collection->id);
87 public function deleteOwnedAccessCollections() {
92 $collections = $this->getOwnedAccessCollections();
93 if (empty($collections)) {
98 foreach ($collections as $collection) {
Access collections database service.
Exception thrown if an argument is not of the expected type.
if($who_can_change_language==='nobody') elseif($who_can_change_language==='admin_only' &&!elgg_is_admin_logged_in()) $options
_elgg_services()
Get the global service provider.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.