Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F452556
ManiphestCustomField.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
ManiphestCustomField.php
View Options
<?php
abstract
class
ManiphestCustomField
extends
PhabricatorCustomField
{
public
function
newStorageObject
()
{
return
new
ManiphestCustomFieldStorage
();
}
protected
function
newStringIndexStorage
()
{
return
new
ManiphestCustomFieldStringIndex
();
}
protected
function
newNumericIndexStorage
()
{
return
new
ManiphestCustomFieldNumericIndex
();
}
/**
* When the user creates a task, the UI prompts them to "Create another
* similar task". This copies some fields (e.g., Owner and CCs) but not other
* fields (e.g., description). If this custom field should also be copied,
* return true from this method.
*
* @return bool True to copy the default value from the template task when
* creating a new similar task.
*/
public
function
shouldCopyWhenCreatingSimilarTask
()
{
return
false
;
}
// TODO: All of this is legacy junk.
public
function
renderTransactionEmailVerb
(
ManiphestTransaction
$transaction
)
{
return
null
;
}
public
function
renderTransactionDescription
(
ManiphestTransaction
$transaction
)
{
$old
=
$transaction
->
getOldValue
();
$new
=
$transaction
->
getNewValue
();
return
pht
(
'updated field %s from %s to %s'
,
$this
->
getFieldName
(),
hsprintf
(
'%s'
,
$old
),
hsprintf
(
'%s'
,
$new
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:45 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68892
Default Alt Text
ManiphestCustomField.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment