Differential D13200 Diff 31965 src/infrastructure/customfield/exception/PhabricatorCustomFieldImplementationIncompleteException.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/exception/PhabricatorCustomFieldImplementationIncompleteException.php
| Show All 9 Lines | public function __construct( | ||||
| if ($field_key_is_incomplete) { | if ($field_key_is_incomplete) { | ||||
| $key = pht('<incomplete key>'); | $key = pht('<incomplete key>'); | ||||
| $name = pht('<incomplete name>'); | $name = pht('<incomplete name>'); | ||||
| } else { | } else { | ||||
| $key = $field->getFieldKey(); | $key = $field->getFieldKey(); | ||||
| $name = $field->getFieldName(); | $name = $field->getFieldName(); | ||||
| } | } | ||||
| $class = get_class($field); | |||||
| parent::__construct( | parent::__construct( | ||||
| "Custom field '{$name}' (with key '{$key}', of class '{$class}') is ". | pht( | ||||
| "incompletely implemented: it claims to support a feature, but does not ". | "Custom field '%s' (with key '%s', of class '%s') is incompletely ". | ||||
| "implement all of the required methods for that feature."); | "implemented: it claims to support a feature, but does not ". | ||||
| "implement all of the required methods for that feature.", | |||||
| $name, | |||||
| $key, | |||||
| get_class($field))); | |||||
| } | } | ||||
| } | } | ||||