Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891958
DarkConsoleRealtimePlugin.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
DarkConsoleRealtimePlugin.php
View Options
<?php
final
class
DarkConsoleRealtimePlugin
extends
DarkConsolePlugin
{
public
function
getName
(
)
{
return
pht
(
'Realtime'
)
;
}
public
function
getColor
(
)
{
return
null
;
}
public
function
getDescription
(
)
{
return
pht
(
'Debugging console for real-time notifications.'
)
;
}
public
function
renderPanel
(
)
{
$frame
=
phutil_tag
(
'div'
,
array
(
'id'
=>
'dark-console-realtime-log'
,
'class'
=>
'dark-console-log-frame'
,
)
)
;
$reconnect_label
=
pht
(
'Reconnect'
)
;
$replay_label
=
pht
(
'Replay'
)
;
$repaint_label
=
pht
(
'Repaint'
)
;
$buttons
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'dark-console-realtime-actions'
,
)
,
array
(
id
(
new
PHUIButtonView
(
)
)
->
setIcon
(
'fa-refresh'
)
->
setColor
(
PHUIButtonView
::
GREY
)
->
setText
(
$reconnect_label
)
->
addSigil
(
'dark-console-realtime-action'
)
->
setMetadata
(
array
(
'action'
=>
'reconnect'
,
'label'
=>
$reconnect_label
,
)
)
,
id
(
new
PHUIButtonView
(
)
)
->
setIcon
(
'fa-backward'
)
->
setColor
(
PHUIButtonView
::
GREY
)
->
setText
(
$replay_label
)
->
addSigil
(
'dark-console-realtime-action'
)
->
setMetadata
(
array
(
'action'
=>
'replay'
,
'label'
=>
$replay_label
,
)
)
,
id
(
new
PHUIButtonView
(
)
)
->
setIcon
(
'fa-paint-brush'
)
->
setColor
(
PHUIButtonView
::
GREY
)
->
setText
(
$repaint_label
)
->
addSigil
(
'dark-console-realtime-action'
)
->
setMetadata
(
array
(
'action'
=>
'repaint'
,
'label'
=>
$repaint_label
,
)
)
,
)
)
;
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'dark-console-realtime'
,
)
,
array
(
$buttons
,
$frame
,
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:59 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1110142
Default Alt Text
DarkConsoleRealtimePlugin.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment