From bab90941c9faea31651bb8b562ddec6b5a82292c Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 19 Nov 2008 21:16:49 +0000 Subject: 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 --- engine/lib/export.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engine/lib/export.php') diff --git a/engine/lib/export.php b/engine/lib/export.php index e819264f6..6e37d3b45 100644 --- a/engine/lib/export.php +++ b/engine/lib/export.php @@ -20,11 +20,17 @@ interface Exportable { /** - * This must take the contents of the object and convert it to exportable class(es). + * This must take the contents of the object and convert it to exportable ODD * @return object or array of objects. */ public function export(); + /** + * Return a list of all fields that can be exported. + * This should be used as the basis for the values returned by export() + */ + public function getExportableValues(); + } /** -- cgit v1.2.3