Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122104797
PhabricatorRepositoryNotifyTransaction.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, Jul 15, 19:35
Size
812 B
Mime Type
text/x-php
Expires
Thu, Jul 17, 19:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27435221
Attached To
rPH Phabricator
PhabricatorRepositoryNotifyTransaction.php
View Options
<?php
final
class
PhabricatorRepositoryNotifyTransaction
extends
PhabricatorRepositoryTransactionType
{
const
TRANSACTIONTYPE
=
'repo:notify'
;
public
function
generateOldValue
(
$object
)
{
return
(
int
)!
$object
->
getDetail
(
'herald-disabled'
);
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
(
int
)
$value
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setDetail
(
'herald-disabled'
,
(
int
)!
$value
);
}
public
function
getTitle
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s enabled notifications and publishing for this repository.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s disabled notifications and publishing for this repository.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment