Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95669127
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
Wed, Dec 18, 05:20
Size
654 B
Mime Type
text/x-php
Expires
Fri, Dec 20, 05:20 (2 d)
Engine
blob
Format
Raw Data
Handle
23039949
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