Elgg  Version 4.x
Public Member Functions | Protected Member Functions | List of all members
ElggAccessCollection Class Reference
Inheritance diagram for ElggAccessCollection:
ElggData Elgg\Collections\CollectionItemInterface

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 ()
 {} More...
 
 delete ()
 {} More...
 
 canEdit ($user_guid=null)
 Check if user can edit this collection. More...
 
 getMembers (array $options=[])
 Returns members of the access collection. More...
 
 hasMember ($member_guid=0)
 Checks if user is already in access collection. More...
 
 addMember ($member_guid=0)
 Adds a user to access collection. More...
 
 removeMember ($member_guid=0)
 Removes a user from access collection. More...
 
 getURL ()
 {} More...
 
 toObject (array $params=[])
 {} More...
 
 getSystemLogID ()
 {} More...
 
 getObjectFromID ($id)
 {} More...
 
 getType ()
 {} More...
 
 getSubtype ()
 {} More...
 
- Public Member Functions inherited from ElggData
 __isset ($name)
 Test if property is set either as an attribute or metadata. More...
 
 __unset ($name)
 Unset a property from metadata or attribute. More...
 
 getURL ()
 Get a URL for this object. More...
 
 save ()
 Save this data to the appropriate database table. More...
 
 delete ()
 Delete this data. More...
 
 getTimeCreated ()
 Returns the UNIX epoch time that this entity was created. More...
 
 toObject (array $params=[])
 Get a plain old object copy for public consumption. More...
 
 rewind ()
 Iterator interface. More...
 
 current ()
 Iterator interface. More...
 
 key ()
 Iterator interface. More...
 
 next ()
 Iterator interface. More...
 
 valid ()
 Iterator interface. More...
 
 offsetSet ($key, $value)
 Array access interface. More...
 
 offsetGet ($key)
 Array access interface. More...
 
 offsetUnset ($key)
 Array access interface. More...
 
 offsetExists ($offset)
 Array access interface. More...
 
 getID ()
 {Get unique item identifier within a collection.
Returns
string|int
} More...
 
 getPriority ()
 {Get priority (weight) of the item within a collection.
Returns
int
} More...
 
 __serialize ()
 Called during serialization. More...
 
 __unserialize (array $data)
 Called during unserialization. More...
 

Protected Member Functions

 initializeAttributes ()
 Initialize the attributes array. More...
 
- Protected Member Functions inherited from ElggData
 initializeAttributes ()
 Initialize the attributes array. More...
 
 getDatabase ()
 Provides a pointer to the database object. More...
 

Additional Inherited Members

- Protected Attributes inherited from ElggData
 $attributes = []
 
 $valid = false
 

Detailed Description

Definition at line 10 of file ElggAccessCollection.php.

Constructor & Destructor Documentation

ElggAccessCollection::__construct ( stdClass  $row = null)

Create an access collection object.

Parameters
stdClass$rowDatabase row

Definition at line 17 of file ElggAccessCollection.php.

Member Function Documentation

ElggAccessCollection::__get (   $name)

Get an attribute.

Parameters
string$nameName
Returns
mixed

Definition at line 61 of file ElggAccessCollection.php.

ElggAccessCollection::__set (   $name,
  $value 
)

Set an attribute.

Parameters
string$nameName
mixed$valueValue
Returns
void
Exceptions
RuntimeException

Definition at line 48 of file ElggAccessCollection.php.

ElggAccessCollection::addMember (   $member_guid = 0)

Adds a user to access collection.

Parameters
int$member_guidGUID of the user
Returns
bool

Definition at line 162 of file ElggAccessCollection.php.

ElggAccessCollection::canEdit (   $user_guid = null)

Check if user can edit this collection.

Parameters
int$user_guidGUID of the user
Returns
bool

Definition at line 132 of file ElggAccessCollection.php.

ElggAccessCollection::delete ( )

{}

Definition at line 122 of file ElggAccessCollection.php.

ElggAccessCollection::getDisplayName ( )

Get readable access level name for this collection.

Returns
string

Definition at line 81 of file ElggAccessCollection.php.

ElggAccessCollection::getMembers ( array  $options = [])

Returns members of the access collection.

Parameters
array$optionsege options
Returns
ElggEntity[]|int|false

Definition at line 142 of file ElggAccessCollection.php.

ElggAccessCollection::getObjectFromID (   $id)

{}

Definition at line 214 of file ElggAccessCollection.php.

ElggAccessCollection::getOwnerEntity ( )

Returns owner entity of the collection.

Returns
|false

Definition at line 73 of file ElggAccessCollection.php.

ElggAccessCollection::getSubtype ( )

{}

Definition at line 228 of file ElggAccessCollection.php.

ElggAccessCollection::getSystemLogID ( )

{}

Definition at line 207 of file ElggAccessCollection.php.

ElggAccessCollection::getType ( )

{}

Definition at line 221 of file ElggAccessCollection.php.

ElggAccessCollection::getURL ( )

{}

Definition at line 179 of file ElggAccessCollection.php.

ElggAccessCollection::hasMember (   $member_guid = 0)

Checks if user is already in access collection.

Parameters
int$member_guidGUID of the user
Returns
bool

Definition at line 152 of file ElggAccessCollection.php.

ElggAccessCollection::initializeAttributes ( )
protected

Initialize the attributes array.

See also
ElggData::initializeAttributes()
Returns
void

Definition at line 31 of file ElggAccessCollection.php.

ElggAccessCollection::removeMember (   $member_guid = 0)

Removes a user from access collection.

Parameters
int$member_guidGUID of the user
Returns
bool

Definition at line 172 of file ElggAccessCollection.php.

ElggAccessCollection::save ( )

{}

Definition at line 111 of file ElggAccessCollection.php.

ElggAccessCollection::toObject ( array  $params = [])

{}

Definition at line 191 of file ElggAccessCollection.php.


The documentation for this class was generated from the following file: