Page MenuHomePhorge

HeraldFieldValue.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

HeraldFieldValue.php

<?php
abstract class HeraldFieldValue extends Phobject {
private $viewer;
const CONTROL_NONE = 'herald.control.none';
const CONTROL_TEXT = 'herald.control.text';
const CONTROL_SELECT = 'herald.control.select';
const CONTROL_TOKENIZER = 'herald.control.tokenizer';
const CONTROL_REMARKUP = 'herald.control.remarkup';
abstract public function getFieldValueKey();
abstract public function getControlType();
abstract public function renderFieldValue($value);
abstract public function renderEditorValue($value);
public function setViewer(PhabricatorUser $viewer) {
$this->viewer = $viewer;
return $this;
}
public function getViewer() {
return $this->viewer;
}
final public function getControlSpecificationDictionary() {
return array(
'key' => $this->getFieldValueKey(),
'control' => $this->getControlType(),
'template' => $this->getControlTemplate(),
);
}
protected function getControlTemplate() {
return array();
}
public function renderTranscriptValue($value) {
return $this->renderFieldValue($value);
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 10:46 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98017
Default Alt Text
HeraldFieldValue.php (1 KB)

Event Timeline