Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96085612
PhutilEvent.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
Sun, Dec 22, 11:35
Size
649 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 11:35 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
23117127
Attached To
rPHU libphutil
PhutilEvent.php
View Options
<?php
/**
* @group event
* @concrete-extensible
*/
class
PhutilEvent
{
private
$type
;
private
$data
;
private
$stop
=
false
;
public
function
__construct
(
$type
,
array
$data
=
array
())
{
$this
->
type
=
$type
;
$this
->
data
=
$data
;
}
public
function
getType
()
{
return
$this
->
type
;
}
public
function
getValue
(
$key
,
$default
=
null
)
{
return
idx
(
$this
->
data
,
$key
,
$default
);
}
public
function
setValue
(
$key
,
$value
)
{
$this
->
data
[
$key
]
=
$value
;
return
$this
;
}
public
function
stop
()
{
$this
->
stop
=
true
;
return
$this
;
}
public
function
isStopped
()
{
return
$this
->
stop
;
}
}
Event Timeline
Log In to Comment