Page MenuHomePhorge

PhabricatorOAuthServerClientPHIDType.php
No OneTemporary

PhabricatorOAuthServerClientPHIDType.php

<?php
final class PhabricatorOAuthServerClientPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'OASC';
public function getTypeName() {
return pht('OAuth Application');
}
public function newObject() {
return new PhabricatorOAuthServerClient();
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorOAuthServerClientQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$client = $objects[$phid];
$handle->setName($client->getName());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Apr 17, 06:40 (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1196958
Default Alt Text
PhabricatorOAuthServerClientPHIDType.php (707 B)

Event Timeline