24 public function getOwnedAccessCollections(array
$options = []): array {
40 if ($subtype ===
'') {
44 $acls = $this->getOwnedAccessCollections([
45 'subtype' => $subtype,
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) {
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
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.
$guid
Reset an ElggUpgrade.