Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F424433
PHUIDiffOneUpInlineCommentRowScaffold.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1010 B
Referenced Files
None
Subscribers
None
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'
,
'id'
=>
$inline
->
getScaffoldCellID
(),
);
if
(
$inline
->
getIsOnRight
())
{
$left_hidden
=
null
;
$right_hidden
=
$inline
->
newHiddenIcon
();
}
else
{
$left_hidden
=
$inline
->
newHiddenIcon
();
$right_hidden
=
null
;
}
$cells
=
array
(
phutil_tag
(
'th'
,
array
(),
$left_hidden
),
phutil_tag
(
'th'
,
array
(),
$right_hidden
),
phutil_tag
(
'td'
,
$attrs
,
$inline
),
);
return
javelin_tag
(
'tr'
,
$this
->
getRowAttributes
(),
$cells
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, May 2, 9:18 PM (23 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
57327
Default Alt Text
PHUIDiffOneUpInlineCommentRowScaffold.php (1010 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment