Page MenuHomestyx hydra

PhabricatorRepositoryPushEventPHIDType.php
No OneTemporary

PhabricatorRepositoryPushEventPHIDType.php

<?php
final class PhabricatorRepositoryPushEventPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PSHE';
public function getTypeName() {
return pht('Push Event');
}
public function newObject() {
return new PhabricatorRepositoryPushEvent();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorDiffusionApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorRepositoryPushEventQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$event = $objects[$phid];
$handle->setName(pht('Push Event %d', $event->getID()));
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 6:21 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
430889
Default Alt Text
PhabricatorRepositoryPushEventPHIDType.php (825 B)

Event Timeline