Elgg
Version 6.2
|
Public Member Functions | ||||
__construct (?\stdClass $row=null) | ||||
Create an access collection object. More... | ||||
__set ($name, $value) | ||||
Set an attribute. More... | ||||
__get ($name) | ||||
Get an attribute. More... | ||||
getOwnerEntity () | ||||
Returns owner entity of the collection. More... | ||||
getDisplayName () | ||||
Get readable access level name for this collection. More... | ||||
save () | ||||
{Save this data to the appropriate database table.
| ||||
delete () | ||||
{Delete this data.
| ||||
canEdit (?int $user_guid=null) | ||||
Check if user can edit this collection. More... | ||||
getMembers (array $options=[]) | ||||
Returns members of the access collection. More... | ||||
hasMember (int $member_guid=0) | ||||
Checks if user is already in access collection. More... | ||||
addMember (int $member_guid=0) | ||||
Adds a user to access collection. More... | ||||
removeMember (int $member_guid=0) | ||||
Removes a user from access collection. More... | ||||
getURL () | ||||
{Get a URL for this object.
| ||||
toObject (array $params=[]) | ||||
{Get a plain old object copy for public consumption.
| ||||
getSystemLogID () | ||||
{Return an identification for the object for storage in the system log.This id must be an integer. Unsaved implementations should return 0.
| ||||
getObjectFromID (int $id) | ||||
{For a given ID, return the object associated with it.This is used by the river functionality primarily. This is useful for checking access permissions etc on objects.
| ||||
getType () | ||||
{Return the type of the object - eg.object, group, user, relationship, metadata, annotation etc
| ||||
getSubtype () | ||||
{Return a subtype.For metadata & annotations this is the 'name' and for relationship this is the relationship type.
| ||||
![]() | ||||
__isset ($name) | ||||
Test if property is set either as an attribute or metadata. More... | ||||
__unset ($name) | ||||
Unset a property from metadata or attribute. More... | ||||
getTimeCreated () | ||||
Returns the UNIX epoch time that this entity was created. More... | ||||
rewind () | ||||
Iterator interface. More... | ||||
current () | ||||
Iterator interface. More... | ||||
key () | ||||
Iterator interface. More... | ||||
next () | ||||
Iterator interface. More... | ||||
valid () | ||||
Iterator interface. More... | ||||
offsetSet ($offset, $value) | ||||
Array access interface. More... | ||||
offsetGet ($offset) | ||||
Array access interface. More... | ||||
offsetUnset ($offset) | ||||
Array access interface. More... | ||||
offsetExists ($offset) | ||||
Array access interface. More... | ||||
getID () | ||||
{Get unique item identifier within a collection.
| ||||
getPriority () | ||||
{Get priority (weight) of the item within a collection.
| ||||
__serialize () | ||||
Called during serialization. More... | ||||
__unserialize (array $data) | ||||
Called during unserialization. More... | ||||
Protected Member Functions | |
initializeAttributes () | |
Initialize the attributes array. More... | |
![]() | |
getDatabase () | |
Provides a pointer to the database object. More... | |
Additional Inherited Members | |
![]() | |
$attributes = [] | |
$valid = false | |
Definition at line 11 of file ElggAccessCollection.php.
ElggAccessCollection::__construct | ( | ?\stdClass | $row = null | ) |
Create an access collection object.
null | \stdClass | $row | Database row |
Definition at line 18 of file ElggAccessCollection.php.
ElggAccessCollection::__get | ( | $name | ) |
Get an attribute.
string | $name | The name of the attribute to get |
Definition at line 87 of file ElggAccessCollection.php.
ElggAccessCollection::__set | ( | $name, | |
$value | |||
) |
Set an attribute.
string | $name | The name of the attribute |
mixed | $value | The value of the attribute |
Definition at line 50 of file ElggAccessCollection.php.
ElggAccessCollection::addMember | ( | int | $member_guid = 0 | ) |
Adds a user to access collection.
int | $member_guid | GUID of the user |
Definition at line 191 of file ElggAccessCollection.php.
ElggAccessCollection::canEdit | ( | ?int | $user_guid = null | ) |
Check if user can edit this collection.
null | int | $user_guid | GUID of the user |
Definition at line 158 of file ElggAccessCollection.php.
ElggAccessCollection::delete | ( | ) |
{Delete this data.
Reimplemented from ElggData.
Definition at line 147 of file ElggAccessCollection.php.
ElggAccessCollection::getDisplayName | ( | ) |
Get readable access level name for this collection.
Definition at line 105 of file ElggAccessCollection.php.
ElggAccessCollection::getMembers | ( | array | $options = [] | ) |
Returns members of the access collection.
array | $options | ege options |
Definition at line 169 of file ElggAccessCollection.php.
ElggAccessCollection::getObjectFromID | ( | int | $id | ) |
{For a given ID, return the object associated with it.This is used by the river functionality primarily. This is useful for checking access permissions etc on objects.
int | $id | GUID of an entity |
Reimplemented from ElggData.
Definition at line 244 of file ElggAccessCollection.php.
ElggAccessCollection::getOwnerEntity | ( | ) |
Returns owner entity of the collection.
Definition at line 96 of file ElggAccessCollection.php.
ElggAccessCollection::getSubtype | ( | ) |
{Return a subtype.For metadata & annotations this is the 'name' and for relationship this is the relationship type.
Reimplemented from ElggData.
Definition at line 258 of file ElggAccessCollection.php.
ElggAccessCollection::getSystemLogID | ( | ) |
{Return an identification for the object for storage in the system log.This id must be an integer. Unsaved implementations should return 0.
Reimplemented from ElggData.
Definition at line 237 of file ElggAccessCollection.php.
ElggAccessCollection::getType | ( | ) |
{Return the type of the object - eg.object, group, user, relationship, metadata, annotation etc
Reimplemented from ElggData.
Definition at line 251 of file ElggAccessCollection.php.
ElggAccessCollection::getURL | ( | ) |
{Get a URL for this object.
Reimplemented from ElggData.
Definition at line 209 of file ElggAccessCollection.php.
ElggAccessCollection::hasMember | ( | int | $member_guid = 0 | ) |
Checks if user is already in access collection.
int | $member_guid | GUID of the user |
Definition at line 180 of file ElggAccessCollection.php.
|
protected |
Initialize the attributes array.
Reimplemented from ElggData.
Definition at line 32 of file ElggAccessCollection.php.
ElggAccessCollection::removeMember | ( | int | $member_guid = 0 | ) |
Removes a user from access collection.
int | $member_guid | GUID of the user |
Definition at line 202 of file ElggAccessCollection.php.
ElggAccessCollection::save | ( | ) |
{Save this data to the appropriate database table.
Reimplemented from ElggData.
Definition at line 136 of file ElggAccessCollection.php.
ElggAccessCollection::toObject | ( | array | $params = [] | ) |
{Get a plain old object copy for public consumption.
array | $params | Export parameters |
Reimplemented from ElggData.
Definition at line 221 of file ElggAccessCollection.php.