Page MenuHomePhorge

PhabricatorTokenSearchField.php
No OneTemporary

Size
750 B
Referenced Files
None
Subscribers
None

PhabricatorTokenSearchField.php

<?php
final class PhabricatorTokenSearchField
extends PhabricatorSearchTokenizerField {
protected function getDefaultValue() {
return array();
}
protected function newDatasource() {
return new PhabricatorTokenDatasource();
}
protected function getValueFromRequest(AphrontRequest $request, $key) {
$list = $this->getListFromRequest($request, $key);
$phids = array();
$slugs = array();
$token_type = PhabricatorTokenTokenPHIDType::TYPECONST;
foreach ($list as $item) {
$type = phid_get_type($item);
if ($type == $token_type) {
$phids[] = $item;
}
}
return $phids;
}
protected function newConduitParameterType() {
return new ConduitPHIDListParameterType();
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, May 7, 8:28 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
88612
Default Alt Text
PhabricatorTokenSearchField.php (750 B)

Event Timeline