18 public function serialize() {
21 if ($this->
object instanceof
ElggData) {
23 $data->object_id = $this->
object->guid;
25 $data->object_id = $this->
object->id;
27 $data->object_type = $this->
object->getType();
28 $data->object_subtype = $this->
object->getSubtype();
31 $data->actor_guid = $this->actor->guid;
33 return serialize(
$data);
42 public function unserialize($serialized) {
43 $data = unserialize($serialized);
44 if (isset(
$data->action)) {
47 if (isset(
$data->object_id) && isset(
$data->object_type)) {
48 switch (
$data->object_type) {
66 if (isset(
$data->actor_guid)) {
get_relationship($id)
Get a relationship by its ID.
if(elgg_trigger_plugin_hook('usersettings:save', 'user', $hooks_params, true)) foreach($request->validation() ->all() as $item) $data
elgg_get_annotation_from_id($id)
Elgg annotations Functions to manage object annotations.
get_entity($guid)
Loads and returns an entity object from a guid.