Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F448044
PhabricatorTextAreaEditField.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
PhabricatorTextAreaEditField.php
View Options
<?php
final
class
PhabricatorTextAreaEditField
extends
PhabricatorEditField
{
private
$monospaced
;
private
$height
;
private
$isStringList
;
public
function
setMonospaced
(
$monospaced
)
{
$this
->
monospaced
=
$monospaced
;
return
$this
;
}
public
function
getMonospaced
()
{
return
$this
->
monospaced
;
}
public
function
setHeight
(
$height
)
{
$this
->
height
=
$height
;
return
$this
;
}
public
function
getHeight
()
{
return
$this
->
height
;
}
public
function
setIsStringList
(
$is_string_list
)
{
$this
->
isStringList
=
$is_string_list
;
return
$this
;
}
public
function
getIsStringList
()
{
return
$this
->
isStringList
;
}
protected
function
newControl
()
{
$control
=
new
AphrontFormTextAreaControl
();
if
(
$this
->
getMonospaced
())
{
$control
->
setCustomClass
(
'PhabricatorMonospaced'
);
}
$height
=
$this
->
getHeight
();
if
(
$height
)
{
$control
->
setHeight
(
$height
);
}
return
$control
;
}
protected
function
getValueForControl
()
{
$value
=
$this
->
getValue
();
if
(
$this
->
getIsStringList
())
{
return
implode
(
"
\n
"
,
$value
);
}
else
{
return
$value
;
}
}
protected
function
newConduitParameterType
()
{
if
(
$this
->
getIsStringList
())
{
return
new
ConduitStringListParameterType
();
}
else
{
return
new
ConduitStringParameterType
();
}
}
protected
function
newHTTPParameterType
()
{
if
(
$this
->
getIsStringList
())
{
return
new
AphrontStringListHTTPParameterType
();
}
else
{
return
new
AphrontStringHTTPParameterType
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 5:45 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66721
Default Alt Text
PhabricatorTextAreaEditField.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment