Class ElggRelationship
Relationship class.
- ElggData implements Loggable, Iterator, ArrayAccess, Exportable
- ElggRelationship implements Importable
public
|
#
__construct( mixed $id = null )
Create a relationship object, optionally from a given id value or row. |
public
mixed
|
|
public
mixed
|
|
public
integer
|
|
public
boolean
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
integer
|
#
getSystemLogID( )
Return an identification for the object for storage in the system log. This id must be an integer. |
public
|
#
getObjectFromID( integer $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. |
public
string
|
|
public
string
|
#
getSubtype( )
Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type. |
__get(),
__isset(),
__set(),
current(),
getClassName(),
getTimeCreated(),
initializeAttributes(),
key(),
next(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
rewind(),
valid()
|
$attributes,
$valid
|
public
integer
|
$id |
#
The unique identifier (read-only) |
public
integer
|
$guid_one |
#
The GUID of the subject of the relationship |
public
string
|
$relationship |
#
The name of the relationship |
public
integer
|
$guid_two |
#
The GUID of the object of the relationship |
public
integer
|
$time_created |
#
A UNIX timestamp of when the relationship was created (read-only, set on first save) |
$owner_guid
|