Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92640769
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
Fri, Nov 22, 07:41
Size
654 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 07:41 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
22466260
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