Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2342619
DarkConsoleEventPluginAPI.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
562 B
Referenced Files
None
Subscribers
None
DarkConsoleEventPluginAPI.php
View Options
<?php
/**
* @group console
*/
final
class
DarkConsoleEventPluginAPI
extends
PhabricatorEventListener
{
private
static
$events
=
array
();
private
static
$discardMode
=
false
;
public
static
function
enableDiscardMode
()
{
self
::
$discardMode
=
true
;
}
public
static
function
getEvents
()
{
return
self
::
$events
;
}
public
function
register
()
{
$this
->
listen
(
PhabricatorEventType
::
TYPE_ALL
);
}
public
function
handleEvent
(
PhutilEvent
$event
)
{
if
(
self
::
$discardMode
)
{
return
;
}
self
::
$events
[]
=
$event
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 9:48 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
444965
Default Alt Text
DarkConsoleEventPluginAPI.php (562 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment