Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92741276
DivinerBookItemView.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, Nov 23, 08:09
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 25, 08:09 (2 d)
Engine
blob
Format
Raw Data
Handle
22502418
Attached To
rPH Phabricator
DivinerBookItemView.php
View Options
<?php
final
class
DivinerBookItemView
extends
AphrontTagView
{
private
$title
;
private
$subtitle
;
private
$type
;
private
$href
;
public
function
setTitle
(
$title
)
{
$this
->
title
=
$title
;
return
$this
;
}
public
function
setSubtitle
(
$subtitle
)
{
$this
->
subtitle
=
$subtitle
;
return
$this
;
}
public
function
setType
(
$type
)
{
$this
->
type
=
$type
;
return
$this
;
}
public
function
setHref
(
$href
)
{
$this
->
href
=
$href
;
return
$this
;
}
public
function
getTagName
()
{
return
'a'
;
}
public
function
getTagAttributes
()
{
return
array
(
'class'
=>
'diviner-book-item'
,
'href'
=>
$this
->
href
,
);
}
public
function
getTagContent
()
{
require_celerity_resource
(
'diviner-shared-css'
);
$title
=
phutil_tag
(
'span'
,
array
(
'class'
=>
'diviner-book-item-title'
),
$this
->
title
);
$subtitle
=
phutil_tag
(
'span'
,
array
(
'class'
=>
'diviner-book-item-subtitle'
),
$this
->
subtitle
);
$type
=
phutil_tag
(
'span'
,
array
(
'class'
=>
'diviner-book-item-type'
),
$this
->
type
);
return
array
(
$title
,
$type
,
$subtitle
);
}
}
Event Timeline
Log In to Comment