Page MenuHomePhorge

PhabricatorConfigConfigPHIDType.php
No OneTemporary

PhabricatorConfigConfigPHIDType.php

<?php
final class PhabricatorConfigConfigPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'CONF';
public function getTypeName() {
return pht('Config');
}
public function newObject() {
return new PhabricatorConfigEntry();
}
public function getPHIDTypeApplicationClass() {
return PhabricatorConfigApplication::class;
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorConfigEntryQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$entry = $objects[$phid];
$key = $entry->getConfigKey();
$handle->setName($key);
$handle->setURI("/config/edit/{$key}/");
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Feb 23, 05:57 (1 d, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1144684
Default Alt Text
PhabricatorConfigConfigPHIDType.php (852 B)

Event Timeline