aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 09:11:27 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 09:11:27 +0000
commit8cbff875f825e709172f63f17636b9f6035a7db5 (patch)
treedee4703705de7858d11e5f652290c4bb713ff9d2 /engine
parentff2ecd405a3b86414fa1145b2a6c826303c3578a (diff)
downloadelgg-8cbff875f825e709172f63f17636b9f6035a7db5.tar.gz
elgg-8cbff875f825e709172f63f17636b9f6035a7db5.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Namespacing stuff (aborted), committed for record only. git-svn-id: https://code.elgg.org/elgg/trunk@522 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php5
-rw-r--r--engine/lib/export.php5
2 files changed, 8 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 3e912836a..8e81f07d0 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -398,6 +398,7 @@
public function export()
{
$tmp = array();
+ $namespace = "http://www.opendd.net/ext/social/1/";
// Generate uuid
$uuid = guid_to_uuid($this->getGUID());
@@ -409,6 +410,9 @@
get_subtype_from_id($this->attributes['subtype'])
);
+ // Set namespace - we're outputting as ODD Social Network Extension
+ $odd->setNamespace($namespace);
+
$tmp[] = $odd;
// Now add its attributes
@@ -442,6 +446,7 @@
// set the time of any metadata created
if ($meta)
{
+ $meta->setNamespace($namespace);
$meta->setAttribute('published', date("r",$this->time_created));
$tmp[] = $meta;
}
diff --git a/engine/lib/export.php b/engine/lib/export.php
index 93c7dc129..2cb233214 100644
--- a/engine/lib/export.php
+++ b/engine/lib/export.php
@@ -11,7 +11,7 @@
*/
/**
- * Define an interface for all exportable objects.
+ * Define an interface for all ODD exportable objects.
*
* @package Elgg
* @subpackage Core
@@ -24,10 +24,11 @@
* @return object or array of objects.
*/
public function export();
+
}
/**
- * Define an interface for all importable objects.
+ * Define an interface for all ODD importable objects.
* @author Marcus Povey
*/
interface Importable