Page MenuHomePhorge

SemiStructuredObjectTypePHIDSearchField.php
No OneTemporary

SemiStructuredObjectTypePHIDSearchField.php

<?php
final class SemiStructuredObjectTypePHIDSearchField
extends PhabricatorSearchField {
private $value;
public function setValue(string $value) {
$this->value = $value;
return $this;
}
public function readValueFromRequest(AphrontRequest $request) {
$id = $request->getURIData('typeid');
if ($id === null) {
return null;
}
$object_type = SemiStructuredObjectTypeQuery::loadOneById(
$this->getViewer(),
$id);
return array($object_type->getPHID());
}
protected function getValueFromRequest(AphrontRequest $request, $key) {
throw new Exception('Did not expect call');
}
protected function getValueForControl() {
return $this->value;
}
protected function newControl() {
return id(new AphrontFormMarkupControl())
->setValue($this->value);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 18:21 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127390
Default Alt Text
SemiStructuredObjectTypePHIDSearchField.php (840 B)

Event Timeline