15 public function serialize() {
18 if ($this->
object instanceof
ElggData) {
20 $data->object_id = $this->
object->guid;
22 $data->object_id = $this->
object->id;
24 $data->object_type = $this->
object->getType();
25 $data->object_subtype = $this->
object->getSubtype();
28 $data->actor_guid = $this->actor->guid;
30 return serialize(
$data);
39 public function unserialize($serialized) {
40 $data = unserialize($serialized);
41 if (isset(
$data->action)) {
44 if (isset(
$data->object_id) && isset(
$data->object_type)) {
45 switch (
$data->object_type) {
63 if (isset(
$data->actor_guid)) {
get_relationship($id)
Get a relationship by its ID.
elgg_get_annotation_from_id($id)
Get a specific annotation by its id.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
get_entity($guid)
Loads and returns an entity object from a guid.