From 688841fb417b67c6749ffab06d69db30f5ceb72e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 19 Dec 2010 10:16:44 -0500 Subject: [PATCH] ActivityObject has attribute for other elements --- lib/activityobject.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/activityobject.php b/lib/activityobject.php index 536e021334..32d9a9aa4f 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -106,6 +106,8 @@ class ActivityObject public $largerImage; public $description; + public $extra; // For extra stuff + /** * Constructor * @@ -565,6 +567,11 @@ class ActivityObject $xs->raw($this->poco->asString()); } + foreach ($this->extra as $el) { + list($tag, $attrs, $content) = $el; + $xs->element($tag, $attrs, $content); + } + $xs->elementEnd($tag); return $xs->getString(); -- 2.39.5