Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F956552
ConpherencePeopleWidgetView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ConpherencePeopleWidgetView.php
View Options
<?php
final
class
ConpherencePeopleWidgetView
extends
ConpherenceWidgetView
{
public
function
render
()
{
$conpherence
=
$this
->
getConpherence
();
$widget_data
=
$conpherence
->
getWidgetData
();
$user
=
$this
->
getUser
();
$conpherence
=
$this
->
getConpherence
();
$participants
=
$conpherence
->
getParticipants
();
$handles
=
$conpherence
->
getHandles
();
$body
=
array
();
// future proof by using participants to iterate through handles;
// we may have non-people handles sooner or later
foreach
(
$participants
as
$user_phid
=>
$participant
)
{
$handle
=
$handles
[
$user_phid
];
$remove_html
=
''
;
if
(
$user_phid
==
$user
->
getPHID
())
{
$remove_html
=
javelin_tag
(
'a'
,
array
(
'class'
=>
'remove'
,
'sigil'
=>
'remove-person'
,
'meta'
=>
array
(
'remove_person'
=>
$handle
->
getPHID
(),
'action'
=>
'remove_person'
,
),
),
hsprintf
(
'<span class="close-icon">×</span>'
));
}
$body
[]
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'person-entry grouped'
,
),
array
(
phutil_tag
(
'a'
,
array
(
'class'
=>
'pic'
,
),
phutil_tag
(
'img'
,
array
(
'src'
=>
$handle
->
getImageURI
(),
),
''
)),
$handle
->
renderLink
(),
$remove_html
,
));
}
return
$body
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 5:49 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227354
Default Alt Text
ConpherencePeopleWidgetView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment