Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / maniphest / field / ManiphestCustomField.php
blobbbd97babf4f7add52fa822ec77fe95a9889f6eed
1 <?php
3 abstract class ManiphestCustomField
4 extends PhabricatorCustomField {
6 public function newStorageObject() {
7 return new ManiphestCustomFieldStorage();
10 protected function newStringIndexStorage() {
11 return new ManiphestCustomFieldStringIndex();
14 protected function newNumericIndexStorage() {
15 return new ManiphestCustomFieldNumericIndex();
18 /**
19 * When the user creates a task, the UI prompts them to "Create another
20 * similar task". This copies some fields (e.g., Owner and CCs) but not other
21 * fields (e.g., description). If this custom field should also be copied,
22 * return true from this method.
24 * @return bool True to copy the default value from the template task when
25 * creating a new similar task.
27 public function shouldCopyWhenCreatingSimilarTask() {
28 return false;