aboutsummaryrefslogtreecommitdiff
path: root/views/foaf
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-29 19:32:38 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-29 19:32:38 +0000
commit9b7b557ab8ef0612af433cb4ab32d5782cd2f207 (patch)
treea9b59a5f161b97327d79a1c89f1a669cad2e6443 /views/foaf
parent45448e357f6acb83857557e23c7d6da862e10bc4 (diff)
downloadelgg-9b7b557ab8ef0612af433cb4ab32d5782cd2f207.tar.gz
elgg-9b7b557ab8ef0612af433cb4ab32d5782cd2f207.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Removed foaf/export since this has been superceded. git-svn-id: https://code.elgg.org/elgg/trunk@762 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/foaf')
-rw-r--r--views/foaf/export/entity.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/views/foaf/export/entity.php b/views/foaf/export/entity.php
deleted file mode 100644
index 8fb7558fe..000000000
--- a/views/foaf/export/entity.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
- /**
- * Elgg FOAF Entity export.
- * Displays an ElggUser entity as FOAF.
- *
- * @package Elgg
- * @subpackage Core
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.org/
- */
-
- global $CONFIG;
-
- $entity = $vars['entity'];
-
- if (!($entity instanceof ElggUser))
- exit;
-
-?>
-<rdf:RDF
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
- xmlns:foaf="http://xmlns.com/foaf/0.1/">
-
- <foaf:Person>
- <foaf:name><?php echo $entity->name; ?></foaf:name>
- <foaf:mbox rdf:resource="<?php echo $entity->email; ?>"/>
- <foaf:nick><?php echo $entity->username; ?></foaf:nick>
-
- <!-- TODO : more -->
-
-<?php
-
- // Get friends
- $friends = get_entities_from_relationship("friend", $entity->guid);
-
- // Iterate through and generate foaf:knows
- if ($friends)
- {
- echo "<foaf:knows>\n";
-
- foreach ($friends as $friend)
- {
- if ($friend instanceof ElggUser)
- {
-?>
- <foaf:Person>
- <foaf:name><?php echo $friend->name; ?></foaf:name>
- <foaf:mbox rdf:resource="<?php echo $friend->email; ?>"/>
- <rdfs:seeAlso rdf:resource="<?php echo guid_to_uuid($friend->guid); ?>?view=foaf"/>
- </foaf:Person>
-<?php
- }
- }
-
- echo "</foaf:knows>\n";
- }
-?>
- </foaf:Person>
-</rdf:RDF> \ No newline at end of file