Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895157
PhabricatorConfigOptionType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConfigOptionType.php
View Options
<?php
abstract
class
PhabricatorConfigOptionType
extends
Phobject
{
public
function
validateOption
(
PhabricatorConfigOption
$option
,
$value
)
{
return
;
}
public
function
readRequest
(
PhabricatorConfigOption
$option
,
AphrontRequest
$request
)
{
$e_value
=
null
;
$errors
=
array
(
)
;
$storage_value
=
$request
->
getStr
(
'value'
)
;
$display_value
=
$request
->
getStr
(
'value'
)
;
return
array
(
$e_value
,
$errors
,
$storage_value
,
$display_value
)
;
}
public
function
getDisplayValue
(
PhabricatorConfigOption
$option
,
PhabricatorConfigEntry
$entry
,
$value
)
{
if
(
is_array
(
$value
)
)
{
return
PhabricatorConfigJSON
::
prettyPrintJSON
(
$value
)
;
}
else
{
return
$value
;
}
}
public
function
renderControls
(
PhabricatorConfigOption
$option
,
$display_value
,
$e_value
)
{
$control
=
$this
->
renderControl
(
$option
,
$display_value
,
$e_value
)
;
return
array
(
$control
)
;
}
public
function
renderControl
(
PhabricatorConfigOption
$option
,
$display_value
,
$e_value
)
{
return
id
(
new
AphrontFormTextControl
(
)
)
->
setName
(
'value'
)
->
setLabel
(
pht
(
'Value'
)
)
->
setValue
(
$display_value
)
->
setError
(
$e_value
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:00 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128712
Default Alt Text
PhabricatorConfigOptionType.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment