Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890957
PhabricatorOwnersPackageStatusTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
716 B
Referenced Files
None
Subscribers
None
PhabricatorOwnersPackageStatusTransaction.php
View Options
<?php
final
class
PhabricatorOwnersPackageStatusTransaction
extends
PhabricatorOwnersPackageTransactionType
{
const
TRANSACTIONTYPE
=
'owners.status'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getStatus
(
)
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setStatus
(
$value
)
;
}
public
function
getTitle
(
)
{
$new
=
$this
->
getNewValue
(
)
;
if
(
$new
==
PhabricatorOwnersPackage
::
STATUS_ACTIVE
)
{
return
pht
(
'%s activated this package.'
,
$this
->
renderAuthor
(
)
)
;
}
else
if
(
$new
==
PhabricatorOwnersPackage
::
STATUS_ARCHIVED
)
{
return
pht
(
'%s archived this package.'
,
$this
->
renderAuthor
(
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 14:24 (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125468
Default Alt Text
PhabricatorOwnersPackageStatusTransaction.php (716 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment