Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F995840
DarkConsoleEventPluginAPI.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
536 B
Referenced Files
None
Subscribers
None
DarkConsoleEventPluginAPI.php
View Options
<?php
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
Thu, Jun 19, 1:08 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
240714
Default Alt Text
DarkConsoleEventPluginAPI.php (536 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment