Page MenuHomec4science

DiffusionRepositoryRemarkupRule.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 15:03

DiffusionRepositoryRemarkupRule.php

<?php
final class DiffusionRepositoryRemarkupRule
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() {
return 'r';
}
protected function getObjectIDPattern() {
return '[A-Z]+';
}
protected function loadObjects(array $ids) {
$viewer = $this->getEngine()->getConfig('viewer');
$repositories = id(new PhabricatorRepositoryQuery())
->setViewer($viewer)
->withCallsigns($ids)
->execute();
return mpull($repositories, null, 'getCallsign');
}
}

Event Timeline