Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92729650
PhabricatorProjectColumnTransaction.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
Sat, Nov 23, 05:19
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 25, 05:19 (2 d)
Engine
blob
Format
Raw Data
Handle
22488568
Attached To
rPH Phabricator
PhabricatorProjectColumnTransaction.php
View Options
<?php
final
class
PhabricatorProjectColumnTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'project:col:name'
;
const
TYPE_STATUS
=
'project:col:status'
;
public
function
getApplicationName
()
{
return
'project'
;
}
public
function
getApplicationTransactionType
()
{
return
PhabricatorProjectPHIDTypeColumn
::
TYPECONST
;
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
$author_handle
=
$this
->
renderHandleLink
(
$this
->
getAuthorPHID
());
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorProjectColumnTransaction
::
TYPE_NAME
:
if
(!
strlen
(
$old
))
{
return
pht
(
'%s created this column.'
,
$author_handle
);
}
else
{
return
pht
(
'%s renamed this column from "%s" to "%s".'
,
$author_handle
,
$old
,
$new
);
}
case
PhabricatorProjectColumnTransaction
::
TYPE_STATUS
:
switch
(
$new
)
{
case
PhabricatorProjectColumn
::
STATUS_ACTIVE
:
return
pht
(
'%s activated this column.'
,
$author_handle
);
case
PhabricatorProjectColumn
::
STATUS_DELETED
:
return
pht
(
'%s deleted this column.'
,
$author_handle
);
}
break
;
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment