Page MenuHomePhorge

NuanceSourcePHIDType.php
No OneTemporary

NuanceSourcePHIDType.php

<?php
final class NuanceSourcePHIDType extends PhabricatorPHIDType {
const TYPECONST = 'NUAS';
public function getTypeName() {
return pht('Source');
}
public function newObject() {
return new NuanceSource();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorNuanceApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new NuanceSourceQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
$viewer = $query->getViewer();
foreach ($handles as $phid => $handle) {
$source = $objects[$phid];
$handle->setName($source->getName());
$handle->setURI($source->getURI());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Jun 9, 06:40 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1761568
Default Alt Text
NuanceSourcePHIDType.php (823 B)

Event Timeline