Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93109161
ReleephEvent.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
Tue, Nov 26, 06:57
Size
865 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 06:57 (2 d)
Engine
blob
Format
Raw Data
Handle
22574008
Attached To
rPH Phabricator
ReleephEvent.php
View Options
<?php
final
class
ReleephEvent
extends
ReleephDAO
{
const
TYPE_BRANCH_CREATE
=
'branch-create'
;
const
TYPE_BRANCH_ACCESS
=
'branch-access-change'
;
protected
$releephProjectID
;
protected
$releephBranchID
;
protected
$type
;
protected
$epoch
;
protected
$actorPHID
;
protected
$details
=
array
();
public
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_SERIALIZATION
=>
array
(
'details'
=>
self
::
SERIALIZATION_JSON
,
),
)
+
parent
::
getConfiguration
();
}
public
function
getDetail
(
$key
,
$default
=
null
)
{
return
idx
(
$this
->
details
,
$key
,
$default
);
}
public
function
setDetail
(
$key
,
$value
)
{
$this
->
details
[
$key
]
=
$value
;
return
$this
;
}
protected
function
willSaveObject
()
{
parent
::
willSaveObject
();
if
(!
$this
->
epoch
)
{
$this
->
epoch
=
$this
->
dateCreated
;
}
}
}
Event Timeline
Log In to Comment