Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96155569
PhabricatorAuthInviteActionTableView.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
Mon, Dec 23, 06:26
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 25, 06:26 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23135275
Attached To
rPH Phabricator
PhabricatorAuthInviteActionTableView.php
View Options
<?php
final
class
PhabricatorAuthInviteActionTableView
extends
AphrontView
{
private
$inviteActions
;
private
$handles
;
public
function
setInviteActions
(
array
$invite_actions
)
{
$this
->
inviteActions
=
$invite_actions
;
return
$this
;
}
public
function
getInviteActions
()
{
return
$this
->
inviteActions
;
}
public
function
setHandles
(
array
$handles
)
{
$this
->
handles
=
$handles
;
return
$this
;
}
public
function
render
()
{
$actions
=
$this
->
getInviteActions
();
$handles
=
$this
->
handles
;
$rows
=
array
();
$rowc
=
array
();
foreach
(
$actions
as
$action
)
{
$issues
=
$action
->
getIssues
();
foreach
(
$issues
as
$key
=>
$issue
)
{
$issues
[
$key
]
=
$action
->
getShortNameForIssue
(
$issue
);
}
$issues
=
implode
(
', '
,
$issues
);
if
(!
$action
->
willSend
())
{
$rowc
[]
=
'highlighted'
;
}
else
{
$rowc
[]
=
null
;
}
$action_icon
=
$action
->
getIconForAction
(
$action
->
getAction
());
$action_name
=
$action
->
getShortNameForAction
(
$action
->
getAction
());
$rows
[]
=
array
(
$action
->
getRawInput
(),
$action
->
getEmailAddress
(),
(
$action
->
getUserPHID
()
?
$handles
[
$action
->
getUserPHID
()]->
renderLink
()
:
null
),
$issues
,
$action_icon
,
$action_name
,
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setRowClasses
(
$rowc
)
->
setHeaders
(
array
(
pht
(
'Raw Address'
),
pht
(
'Parsed Address'
),
pht
(
'User'
),
pht
(
'Issues'
),
null
,
pht
(
'Action'
),
))
->
setColumnClasses
(
array
(
''
,
''
,
''
,
'wide'
,
'icon'
,
''
,
));
return
$table
;
}
}
Event Timeline
Log In to Comment