Page MenuHomec4science

DiffusionCommitRemarkupRule.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 12:50

DiffusionCommitRemarkupRule.php

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

Event Timeline