Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92618502
PhutilCallbackSignalHandler.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
Fri, Nov 22, 02:32
Size
476 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 02:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22472377
Attached To
rPHU libphutil
PhutilCallbackSignalHandler.php
View Options
<?php
final
class
PhutilCallbackSignalHandler
extends
PhutilSignalHandler
{
private
$signal
;
private
$callback
;
public
function
__construct
(
$signal
,
$callback
)
{
$this
->
signal
=
$signal
;
$this
->
callback
=
$callback
;
}
public
function
canHandleSignal
(
PhutilSignalRouter
$router
,
$signo
)
{
return
(
$signo
===
$this
->
signal
);
}
public
function
handleSignal
(
PhutilSignalRouter
$router
,
$signo
)
{
call_user_func
(
$this
->
callback
,
$signo
);
}
}
Event Timeline
Log In to Comment