Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F439613
PhortuneSubscriptionTableView.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
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 4:16 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
63787
Default Alt Text
PhortuneSubscriptionTableView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment