mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 03:08:40 +01:00
Test Plan: Ran `phpstan analyze -a autoload.php phabricator/src`. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, hach-que Differential Revision: https://secure.phabricator.com/D17371
29 lines
747 B
PHP
29 lines
747 B
PHP
<?php
|
|
|
|
final class PhabricatorUserConfiguredCustomField
|
|
extends PhabricatorUserCustomField
|
|
implements PhabricatorStandardCustomFieldInterface {
|
|
|
|
public function getStandardCustomFieldNamespace() {
|
|
return 'user';
|
|
}
|
|
|
|
public function createFields($object) {
|
|
return PhabricatorStandardCustomField::buildStandardFields(
|
|
$this,
|
|
PhabricatorEnv::getEnvConfig('user.custom-field-definitions'));
|
|
}
|
|
|
|
public function newStorageObject() {
|
|
return new PhabricatorUserConfiguredCustomFieldStorage();
|
|
}
|
|
|
|
protected function newStringIndexStorage() {
|
|
return new PhabricatorUserCustomFieldStringIndex();
|
|
}
|
|
|
|
protected function newNumericIndexStorage() {
|
|
return new PhabricatorUserCustomFieldNumericIndex();
|
|
}
|
|
|
|
}
|