Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102687616
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
Sun, Feb 23, 05:53
Size
865 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 05:53 (2 d)
Engine
blob
Format
Raw Data
Handle
24396428
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