Page MenuHomePhorge

PhabricatorWorkerTriggerPHIDType.php
No OneTemporary

PhabricatorWorkerTriggerPHIDType.php

<?php
final class PhabricatorWorkerTriggerPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'TRIG';
public function getTypeName() {
return pht('Trigger');
}
public function newObject() {
return new PhabricatorWorkerTrigger();
}
public function getPHIDTypeApplicationClass() {
return PhabricatorDaemonsApplication::class;
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorWorkerTriggerQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$trigger = $objects[$phid];
$id = $trigger->getID();
$handle->setName(pht('Trigger %d', $id));
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 19:26 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111780
Default Alt Text
PhabricatorWorkerTriggerPHIDType.php (826 B)

Event Timeline