2013-09-11 00:31:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class ManiphestCustomField
|
|
|
|
extends PhabricatorCustomField {
|
|
|
|
|
2013-09-16 23:06:41 +02:00
|
|
|
public function newStorageObject() {
|
|
|
|
return new ManiphestCustomFieldStorage();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function newStringIndexStorage() {
|
|
|
|
return new ManiphestCustomFieldStringIndex();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function newNumericIndexStorage() {
|
|
|
|
return new ManiphestCustomFieldNumericIndex();
|
|
|
|
}
|
|
|
|
|
2013-09-17 01:03:01 +02:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|
2013-09-11 00:31:48 +02:00
|
|
|
}
|