Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78340555
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
Mon, Aug 19, 22:25
Size
476 B
Mime Type
text/x-php
Expires
Wed, Aug 21, 22:25 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20027955
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