1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/diffusion/remarkup/DiffusionCommitRemarkupRule.php

30 lines
646 B
PHP
Raw Normal View History

2011-04-11 12:02:19 +02:00
<?php
final class DiffusionCommitRemarkupRule extends PhabricatorRemarkupRuleObject {
2011-04-11 12:02:19 +02:00
protected function getObjectNamePrefix() {
return '';
2011-04-11 12:02:19 +02: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 12:02:19 +02:00
}
}