Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1084275
DivinerBookItemView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
}
protected
function
getTagName
()
{
return
'a'
;
}
protected
function
getTagAttributes
()
{
return
array
(
'class'
=>
'diviner-book-item'
,
'href'
=>
$this
->
href
,
);
}
protected
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 11:17 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
258776
Default Alt Text
DivinerBookItemView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment