Path: blob/master/src/applications/diffusion/herald/DiffusionCommitBranchesHeraldField.php
12242 views
<?php12final class DiffusionCommitBranchesHeraldField3extends DiffusionCommitHeraldField {45const FIELDCONST = 'diffusion.commit.branches';67public function getHeraldFieldName() {8return pht('Branches');9}1011public function getHeraldFieldValue($object) {12$viewer = $this->getAdapter()->getViewer();1314$commit = $object;15$repository = $object->getRepository();1617$params = array(18'repository' => $repository->getPHID(),19'contains' => $commit->getCommitIdentifier(),20);2122$result = id(new ConduitCall('diffusion.branchquery', $params))23->setUser($viewer)24->execute();2526$refs = DiffusionRepositoryRef::loadAllFromDictionaries($result);2728return mpull($refs, 'getShortName');29}3031protected function getHeraldFieldStandardType() {32return self::STANDARD_TEXT_LIST;33}3435}363738