Elgg
Version 1.11
|
Public Member Functions | |
__construct ($row=null) | |
Create a relationship object. More... | |
__set ($name, $value) | |
Set an attribute of the relationship. More... | |
set ($name, $value) | |
Class member set overloading. More... | |
__get ($name) | |
Get an attribute of the relationship. More... | |
get ($name) | |
Class member get overloading. More... | |
save () | |
Save the relationship. More... | |
delete () | |
Delete this relationship from the database. More... | |
getURL () | |
Get a URL for this relationship. More... | |
toObject () | |
{} More... | |
getExportableValues () | |
Return an array of fields which can be exported. More... | |
export () | |
Export this relationship. More... | |
import (ODD $data) | |
Import a relationship. More... | |
getSystemLogID () | |
Return an identification for the object for storage in the system log. More... | |
getObjectFromID ($id) | |
For a given ID, return the object associated with it. More... | |
getType () | |
Return a type of the object - eg. More... | |
getSubtype () | |
Return a subtype. More... | |
Public Member Functions inherited from ElggData | |
__isset ($name) | |
Test if property is set either as an attribute or metadata. 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 () | |
Get a plain old object copy for public consumption. More... | |
getClassName () | |
Return the class name of the object. More... | |
getObjectOwnerGUID () | |
Return the GUID of the owner of this object. 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... | |
Public Attributes | |
const | RELATIONSHIP_LIMIT = 50 |
Protected Member Functions | |
initializeAttributes () | |
(non-PHPdoc) More... | |
Protected Member Functions inherited from ElggData | |
initialise_attributes ($pre18_api=true) | |
Initialise the attributes array. More... | |
initializeAttributes () | |
Initialize the attributes array. More... | |
getDatabase () | |
Provides a pointer to the database object. More... | |
get ($name) | |
Fetch the specified attribute. More... | |
set ($name, $value) | |
Set the specified attribute. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ElggData | |
$attributes = array() | |
The main attributes of an entity. More... | |
$valid = false | |
Definition at line 14 of file ElggRelationship.php.
ElggRelationship::__construct | ( | $row = null | ) |
Create a relationship object.
\stdClass | $row | Database row or null for new relationship |
InvalidArgumentException |
Definition at line 26 of file ElggRelationship.php.
ElggRelationship::__get | ( | $name | ) |
Get an attribute of the relationship.
string | $name | Name |
Definition at line 99 of file ElggRelationship.php.
ElggRelationship::__set | ( | $name, | |
$value | |||
) |
Set an attribute of the relationship.
string | $name | Name |
mixed | $value | Value |
Definition at line 75 of file ElggRelationship.php.
ElggRelationship::delete | ( | ) |
Delete this relationship from the database.
Definition at line 143 of file ElggRelationship.php.
ElggRelationship::export | ( | ) |
Export this relationship.
Implements Exportable.
Definition at line 225 of file ElggRelationship.php.
ElggRelationship::get | ( | $name | ) |
Class member get overloading.
string | $name | Name |
Definition at line 114 of file ElggRelationship.php.
ElggRelationship::getExportableValues | ( | ) |
Return an array of fields which can be exported.
Implements Exportable.
Definition at line 209 of file ElggRelationship.php.
ElggRelationship::getObjectFromID | ( | $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 | ID |
Implements Loggable.
Definition at line 308 of file ElggRelationship.php.
ElggRelationship::getSubtype | ( | ) |
Return a subtype.
For metadata & annotations this is the 'name' and for relationship this is the relationship type.
Implements Loggable.
Definition at line 327 of file ElggRelationship.php.
ElggRelationship::getSystemLogID | ( | ) |
Return an identification for the object for storage in the system log.
This id must be an integer.
Implements Loggable.
Definition at line 295 of file ElggRelationship.php.
ElggRelationship::getType | ( | ) |
Return a type of the object - eg.
object, group, user, relationship, metadata, annotation etc
Implements Loggable.
Definition at line 317 of file ElggRelationship.php.
ElggRelationship::getURL | ( | ) |
Get a URL for this relationship.
Plugins can register for the 'relationship:url', 'relationship' plugin hook to customize the url for a relationship.
Definition at line 155 of file ElggRelationship.php.
ElggRelationship::import | ( | ODD | $data | ) |
Import a relationship.
ImportException|InvalidParameterException |
Implements Importable.
Definition at line 250 of file ElggRelationship.php.
|
protected |
(non-PHPdoc)
Definition at line 59 of file ElggRelationship.php.
ElggRelationship::save | ( | ) |
Save the relationship.
IOException |
Definition at line 125 of file ElggRelationship.php.
ElggRelationship::set | ( | $name, | |
$value | |||
) |
Class member set overloading.
string | $name | Name |
mixed | $value | Value |
Definition at line 87 of file ElggRelationship.php.
ElggRelationship::toObject | ( | ) |
{}
Definition at line 190 of file ElggRelationship.php.
const ElggRelationship::RELATIONSHIP_LIMIT = 50 |
Definition at line 18 of file ElggRelationship.php.