Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91549301
PhabricatorApplicationStatusView.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
Tue, Nov 12, 03:16
Size
934 B
Mime Type
text/x-php
Expires
Thu, Nov 14, 03:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22281862
Attached To
rPH Phabricator
PhabricatorApplicationStatusView.php
View Options
<?php
final
class
PhabricatorApplicationStatusView
extends
AphrontView
{
private
$count
;
private
$text
;
private
$type
;
const
TYPE_NEEDS_ATTENTION
=
'needs'
;
const
TYPE_INFO
=
'info'
;
const
TYPE_OKAY
=
'okay'
;
const
TYPE_WARNING
=
'warning'
;
const
TYPE_EMPTY
=
'empty'
;
public
function
setType
(
$type
)
{
$this
->
type
=
$type
;
return
$this
;
}
public
function
setText
(
$text
)
{
$this
->
text
=
$text
;
return
$this
;
}
public
function
setCount
(
$count
)
{
$this
->
count
=
$count
;
return
$this
;
}
public
function
getCount
()
{
return
$this
->
count
;
}
public
function
render
()
{
$classes
=
array
(
'phabricator-application-status'
,
'phabricator-application-status-type-'
.
$this
->
type
,
);
return
phutil_tag
(
'span'
,
array
(
'class'
=>
implode
(
' '
,
$classes
),
),
$this
->
text
);
}
}
Event Timeline
Log In to Comment