Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101637608
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
Wed, Feb 12, 08:05
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Feb 14, 08:05 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24163940
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
getType
()
{
return
$this
->
type
;
}
public
function
setText
(
$text
)
{
$this
->
text
=
$text
;
return
$this
;
}
public
function
getText
()
{
return
$this
->
text
;
}
public
function
setCount
(
$count
)
{
$this
->
count
=
$count
;
return
$this
;
}
public
function
getCount
()
{
return
$this
->
count
;
}
public
function
render
()
{
$type
=
$this
->
type
;
if
(!
$this
->
count
)
{
$type
=
self
::
TYPE_EMPTY
;
}
$classes
=
array
(
'phabricator-application-status'
,
'phabricator-application-status-type-'
.
$type
,
);
return
phutil_tag
(
'span'
,
array
(
'class'
=>
implode
(
' '
,
$classes
),
),
$this
->
text
);
}
}
Event Timeline
Log In to Comment