diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-21 10:39:35 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-21 10:39:35 +0000 |
commit | e7a6658abfd1f8e20ebc91ce3022eef8376b3e2e (patch) | |
tree | 082c703a6579acb50b8606e0ae59629314342bcf /mod/activity/opendd.php | |
parent | 591790174387f9b773c5e8414eda772dad5ede04 (diff) | |
download | elgg-e7a6658abfd1f8e20ebc91ce3022eef8376b3e2e.tar.gz elgg-e7a6658abfd1f8e20ebc91ce3022eef8376b3e2e.tar.bz2 |
Added Activity stream back in
git-svn-id: https://code.elgg.org/elgg/trunk@2589 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/activity/opendd.php')
-rw-r--r-- | mod/activity/opendd.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mod/activity/opendd.php b/mod/activity/opendd.php new file mode 100644 index 000000000..9c008d472 --- /dev/null +++ b/mod/activity/opendd.php @@ -0,0 +1,35 @@ +<?php + /** + * Elgg activity plugin opendd export of a given statement. + * + * @package ElggActivity + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + */ + + $id = (int)get_input('statement_id'); + $type = sanitise_string(get_input('statement_type')); + $metaname = sanitise_string(get_input('metaname')); + + $statement = construct_riverstatement_from_log( + get_log_entry($id) + ); + + global $CONFIG; + + switch ($type) + { + case 'statement' : $result = activity_export_statement($statement, $id); + foreach ($result as $r) $body .= "$r"; + break; + case 'metadata' : + + $md = activity_export_field_from_statement($statement, $id, $metaname); + $body .= "$md"; + break; + } + + page_draw('',$body); +?>
\ No newline at end of file |