Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97002895
PhabricatorRepositoryAutocloseTransaction.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, Jan 1, 13:01
Size
784 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 13:01 (2 d)
Engine
blob
Format
Raw Data
Handle
23310265
Attached To
rPH Phabricator
PhabricatorRepositoryAutocloseTransaction.php
View Options
<?php
final
class
PhabricatorRepositoryAutocloseTransaction
extends
PhabricatorRepositoryTransactionType
{
const
TRANSACTIONTYPE
=
'repo:autoclose'
;
public
function
generateOldValue
(
$object
)
{
return
(
int
)!
$object
->
getDetail
(
'disable-autoclose'
);
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
(
int
)
$value
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setDetail
(
'disable-autoclose'
,
(
int
)!
$value
);
}
public
function
getTitle
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s enabled autoclose for this repository.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s disabled autoclose for this repository.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment