Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
relationship.php
Go to the documentation of this file.
1 <?php
11 $r = $vars['relationship'];
12 
13 $e1 = get_entity($r->guid_one);
14 $e2 = get_entity($r->guid_two);
15 ?>
16 <p class="margin-none"><?php
17  if ($e1) echo "<a href=\"" . $e1->getURL() . "\">GUID:" . $r->guid_one . "</a>"; else echo "GUID:".$r->guid_one;
18 ?>
19 <b><?php echo $r->relationship; ?></b>
20 <?php
21  if ($e2) echo "<a href=\"" . $e2->getURL() . "\">GUID:" . $r->guid_two . "</a>"; else echo "GUID:".$r->guid_two;
22 ?></p>
$r
$e1
$vars['entity']
$e2
b
Definition: admin.css.php:56
get_entity($guid)
Loads and returns an entity object from a guid.
Definition: entities.php:204