1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-24 21:48:21 +01:00
phorge-phorge/src/applications/diffusion/remarkup/DiffusionCommitRemarkupRule.php

30 lines
646 B
PHP
Raw Normal View History

2011-04-11 03:02:19 -07:00
<?php
final class DiffusionCommitRemarkupRule extends PhabricatorRemarkupRuleObject {
2011-04-11 03:02:19 -07:00
protected function getObjectNamePrefix() {
return '';
2011-04-11 03:02:19 -07:00
}
protected function getObjectNamePrefixBeginsWithWordCharacter() {
return true;
}
protected function getObjectIDPattern() {
return PhabricatorRepositoryCommitPHIDType::getCommitObjectNamePattern();
}
protected function loadObjects(array $ids) {
$viewer = $this->getEngine()->getConfig('viewer');
$query = id(new DiffusionCommitQuery())
->setViewer($viewer)
->withIdentifiers($ids);
$query->execute();
return $query->getIdentifierMap();
2011-04-11 03:02:19 -07:00
}
}