Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92693495
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
Fri, Nov 22, 20:25
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 20:25 (1 d, 23 h)
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