Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F559842
HeraldFieldValue.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
HeraldFieldValue.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment