Page MenuHomePhorge

PhortuneAccountEmailPHIDType.php
No OneTemporary

PhortuneAccountEmailPHIDType.php

<?php
final class PhortuneAccountEmailPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'AEML';
public function getTypeName() {
return pht('Phortune Account Email');
}
public function newObject() {
return new PhortuneAccountEmail();
}
public function getPHIDTypeApplicationClass() {
return PhabricatorPhortuneApplication::class;
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortuneAccountEmailQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$email = $objects[$phid];
$id = $email->getID();
$handle->setName($email->getObjectName());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Mar 27, 01:07 (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1118765
Default Alt Text
PhortuneAccountEmailPHIDType.php (827 B)

Event Timeline