Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98567446
PhortuneSubscriptionTableView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jan 14, 10:20
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Jan 16, 10:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23601026
Attached To
rPH Phabricator
PhortuneSubscriptionTableView.php
View Options
<?php
final
class
PhortuneSubscriptionTableView
extends
AphrontView
{
private
$subscriptions
;
private
$handles
;
public
function
setHandles
(
array
$handles
)
{
$this
->
handles
=
$handles
;
return
$this
;
}
public
function
getHandles
()
{
return
$this
->
handles
;
}
public
function
setSubscriptions
(
array
$subscriptions
)
{
$this
->
subscriptions
=
$subscriptions
;
return
$this
;
}
public
function
getSubscriptions
()
{
return
$this
->
subscriptions
;
}
public
function
render
()
{
$subscriptions
=
$this
->
getSubscriptions
();
$handles
=
$this
->
getHandles
();
$viewer
=
$this
->
getUser
();
$rows
=
array
();
$rowc
=
array
();
foreach
(
$subscriptions
as
$subscription
)
{
$subscription_link
=
$handles
[
$subscription
->
getPHID
()]->
renderLink
();
$rows
[]
=
array
(
$subscription
->
getID
(),
phabricator_datetime
(
$subscription
->
getDateCreated
(),
$viewer
),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'ID'
),
pht
(
'Created'
),
))
->
setColumnClasses
(
array
(
''
,
'right'
,
));
return
$table
;
}
}
Event Timeline
Log In to Comment