Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892933
DivinerReturnTableView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
DivinerReturnTableView.php
View Options
<?php
final
class
DivinerReturnTableView
extends
AphrontTagView
{
private
$return
;
private
$header
;
public
function
setReturn
(
array
$return
)
{
$this
->
return
=
$return
;
return
$this
;
}
public
function
setHeader
(
$text
)
{
$this
->
header
=
$text
;
return
$this
;
}
protected
function
getTagName
(
)
{
return
'div'
;
}
protected
function
getTagAttributes
(
)
{
return
array
(
'class'
=>
'diviner-table-view'
,
)
;
}
protected
function
getTagContent
(
)
{
require_celerity_resource
(
'diviner-shared-css'
)
;
$return
=
$this
->
return
;
$type
=
idx
(
$return
,
'doctype'
)
;
if
(
!
$type
)
{
$type
=
idx
(
$return
,
'type'
)
;
}
$docs
=
idx
(
$return
,
'docs'
)
;
$cells
=
array
(
)
;
$cells
[
]
=
phutil_tag
(
'td'
,
array
(
'class'
=>
'diviner-return-table-type diviner-monospace'
,
)
,
$type
)
;
$cells
[
]
=
phutil_tag
(
'td'
,
array
(
'class'
=>
'diviner-return-table-docs'
,
)
,
$docs
)
;
$rows
=
phutil_tag
(
'tr'
,
array
(
)
,
$cells
)
;
$table
=
phutil_tag
(
'table'
,
array
(
'class'
=>
'diviner-return-table-view'
,
)
,
$rows
)
;
$header
=
phutil_tag
(
'span'
,
array
(
'class'
=>
'diviner-table-header'
,
)
,
$this
->
header
)
;
return
array
(
$header
,
$table
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 17:34 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127018
Default Alt Text
DivinerReturnTableView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment