aboutsummaryrefslogtreecommitdiff
path: root/views/default/export/entity.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-19 21:16:49 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-19 21:16:49 +0000
commitbab90941c9faea31651bb8b562ddec6b5a82292c (patch)
treeeaeb02df929678fa1192ad4a22e14c5f733c7ab6 /views/default/export/entity.php
parentf8b8e83d2210d3d6601e61b291df38a078a95093 (diff)
downloadelgg-bab90941c9faea31651bb8b562ddec6b5a82292c.tar.gz
elgg-bab90941c9faea31651bb8b562ddec6b5a82292c.tar.bz2
Fixes #568: Exportable code now inclusive not exclusive.
* Added extra function Exportable interface * OpenDD export modified * PHP & JSON export views modified * Default export view will still show all data if you are logged in as admin (since this view is used by the guidtool) git-svn-id: https://code.elgg.org/elgg/trunk@2467 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/export/entity.php')
-rw-r--r--views/default/export/entity.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/default/export/entity.php b/views/default/export/entity.php
index 38d2d0902..0e6e26025 100644
--- a/views/default/export/entity.php
+++ b/views/default/export/entity.php
@@ -18,16 +18,19 @@
$annotations = get_annotations($entity->guid);
$relationships = get_entity_relationships($entity->guid);
+ $exportable_values = $entity->getExportableValues();
?>
<div>
<?php
foreach ($entity as $k => $v)
{
+ if ((in_array($k, $exportable_values)) || (isadminloggedin())) {
?>
<div>
<p><b><?php echo $k; ?>: </b><?php echo $v; ?></p>
</div>
<?php
+ }
}
?>
</div>