Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119924645
PhabricatorNotificationStatusView.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
Mon, Jun 30, 14:21
Size
797 B
Mime Type
text/x-php
Expires
Wed, Jul 2, 14:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27081823
Attached To
rPH Phabricator
PhabricatorNotificationStatusView.php
View Options
<?php
final
class
PhabricatorNotificationStatusView
extends
AphrontTagView
{
protected
function
getTagAttributes
()
{
if
(!
$this
->
getID
())
{
$this
->
setID
(
celerity_generate_unique_node_id
());
}
Javelin
::
initBehavior
(
'aphlict-status'
,
array
(
'nodeID'
=>
$this
->
getID
(),
'pht'
=>
array
(
'setup'
=>
pht
(
'Setting Up Client'
),
'open'
=>
pht
(
'Connected'
),
'closed'
=>
pht
(
'Disconnected'
),
),
));
return
array
(
'class'
=>
'aphlict-connection-status'
,
);
}
protected
function
getTagContent
()
{
$have
=
PhabricatorEnv
::
getEnvConfig
(
'notification.servers'
);
if
(
$have
)
{
return
pht
(
'Connecting...'
);
}
else
{
return
pht
(
'Notification server not enabled'
);
}
}
}
Event Timeline
Log In to Comment