Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98305297
PHUIDiffOneUpInlineCommentRowScaffold.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
Sat, Jan 11, 22:34
Size
731 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 22:34 (2 d)
Engine
blob
Format
Raw Data
Handle
23556848
Attached To
rPH Phabricator
PHUIDiffOneUpInlineCommentRowScaffold.php
View Options
<?php
/**
* Row scaffold for `1up` (unified) changeset views.
*
* This scaffold is straightforward.
*/
final
class
PHUIDiffOneUpInlineCommentRowScaffold
extends
PHUIDiffInlineCommentRowScaffold
{
public
function
render
()
{
$inlines
=
$this
->
getInlineViews
();
if
(
count
(
$inlines
)
!=
1
)
{
throw
new
Exception
(
pht
(
'One-up inline row scaffold must have exactly one inline view!'
));
}
$inline
=
head
(
$inlines
);
$attrs
=
array
(
'colspan'
=>
3
,
'class'
=>
'right3'
,
);
$cells
=
array
(
phutil_tag
(
'th'
,
array
()),
phutil_tag
(
'th'
,
array
()),
phutil_tag
(
'td'
,
$attrs
,
$inline
),
);
return
phutil_tag
(
'tr'
,
$this
->
getRowAttributes
(),
$cells
);
}
}
Event Timeline
Log In to Comment