Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F949673
PhabricatorProjectColumnTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
PhabricatorProjectColumnPHIDType
::
TYPECONST
;
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
$author_handle
=
$this
->
renderHandleLink
(
$this
->
getAuthorPHID
());
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorProjectColumnTransaction
::
TYPE_NAME
:
if
(
$old
===
null
)
{
return
pht
(
'%s created this column.'
,
$author_handle
);
}
else
{
if
(!
strlen
(
$old
))
{
return
pht
(
'%s named this column "%s".'
,
$author_handle
,
$new
);
}
else
if
(
strlen
(
$new
))
{
return
pht
(
'%s renamed this column from "%s" to "%s".'
,
$author_handle
,
$old
,
$new
);
}
else
{
return
pht
(
'%s removed the custom name of this column.'
,
$author_handle
);
}
}
case
PhabricatorProjectColumnTransaction
::
TYPE_STATUS
:
switch
(
$new
)
{
case
PhabricatorProjectColumn
::
STATUS_ACTIVE
:
return
pht
(
'%s marked this column visible.'
,
$author_handle
);
case
PhabricatorProjectColumn
::
STATUS_HIDDEN
:
return
pht
(
'%s marked this column hidden.'
,
$author_handle
);
}
break
;
}
return
parent
::
getTitle
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 1:41 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224868
Default Alt Text
PhabricatorProjectColumnTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment