Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93571519
HeraldFieldValue.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 29, 20:18
Size
1000 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 20:18 (2 d)
Engine
blob
Format
Raw Data
Handle
22667869
Attached To
rPH Phabricator
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
();
}
}
Event Timeline
Log In to Comment