Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
owner.php
Go to the documentation of this file.
1
<?php
11
$item
=
$vars
[
'item'
];
12
/* @var ElggEntity $item */
13
14
$link
=
elgg_extract
(
'link'
,
$vars
,
true
);
15
16
$entity
=
$item
->getOwnerEntity();
17
if
(!
$entity
) {
18
return
;
19
}
20
21
$value
=
$entity
->getDisplayName();
22
if
(
$link
) {
23
$value
=
elgg_view
(
'output/url'
, [
24
'href'
=>
$entity
->getURL(),
25
'text'
=>
$value
,
26
]);
27
}
28
29
echo
$value
;
$entity
$entity
Definition:
owner.php:16
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$link
$link
Definition:
owner.php:14
$value
if(!$entity) $value
Definition:
owner.php:21
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
elgg_extract
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1375
$item
$item
Render an owner element.
Definition:
owner.php:11
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11