mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +01:00
28 lines
547 B
PHP
28 lines
547 B
PHP
|
<?php
|
||
|
|
||
|
final class DifferentialJIRAIssuesCommitMessageField
|
||
|
extends DifferentialCommitMessageField {
|
||
|
|
||
|
const FIELDKEY = 'jira.issues';
|
||
|
|
||
|
public function getFieldName() {
|
||
|
return pht('JIRA Issues');
|
||
|
}
|
||
|
|
||
|
public function getFieldAliases() {
|
||
|
return array(
|
||
|
'JIRA',
|
||
|
'JIRA Issue',
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public function parseFieldValue($value) {
|
||
|
return preg_split('/[\s,]+/', $value, $limit = -1, PREG_SPLIT_NO_EMPTY);
|
||
|
}
|
||
|
|
||
|
public function isFieldEnabled() {
|
||
|
return (bool)PhabricatorJIRAAuthProvider::getJIRAProvider();
|
||
|
}
|
||
|
|
||
|
}
|