Page MenuHomestyx hydra

AlmanacServicePHIDType.php
No OneTemporary

AlmanacServicePHIDType.php

<?php
final class AlmanacServicePHIDType extends PhabricatorPHIDType {
const TYPECONST = 'ASRV';
public function getTypeName() {
return pht('Almanac Service');
}
public function newObject() {
return new AlmanacService();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorAlmanacApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new AlmanacServiceQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$service = $objects[$phid];
$id = $service->getID();
$name = $service->getName();
$handle->setObjectName(pht('Service %d', $id));
$handle->setName($name);
$handle->setURI($service->getURI());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Feb 24, 6:57 PM (12 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
850880
Default Alt Text
AlmanacServicePHIDType.php (914 B)

Event Timeline