Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
10 
11 $title = elgg_echo("friends:owned", array($owner->name));
12 
13 $dbprefix = elgg_get_config('dbprefix');
14 $options = array(
15  'relationship' => 'friend',
16  'relationship_guid' => $owner->getGUID(),
17  'inverse_relationship' => false,
18  'type' => 'user',
19  'joins' => array("JOIN {$dbprefix}users_entity ue ON e.guid = ue.guid"),
20  'order_by' => 'ue.name ASC',
21  'full_view' => false,
22  'no_results' => elgg_echo('friends:none'),
23 );
25 
26 $params = array(
27  'content' => $content,
28  'title' => $title,
29 );
30 $body = elgg_view_layout('one_sidebar', $params);
31 
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$options
Definition: index.php:14
$params
Definition: index.php:26
$title
Definition: index.php:11
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:679
$body
Definition: index.php:30
$owner
Definition: index.php:9
$content
Definition: index.php:24
$dbprefix
Definition: index.php:13
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:56
elgg_list_entities_from_relationship(array $options=array())
Returns a viewable list of entities by relationship.
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437