Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93548228
PhabricatorTextEditField.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, 15:42
Size
718 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 15:42 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22661479
Attached To
rPH Phabricator
PhabricatorTextEditField.php
View Options
<?php
final
class
PhabricatorTextEditField
extends
PhabricatorEditField
{
private
$placeholder
;
public
function
setPlaceholder
(
$placeholder
)
{
$this
->
placeholder
=
$placeholder
;
return
$this
;
}
public
function
getPlaceholder
()
{
return
$this
->
placeholder
;
}
protected
function
newControl
()
{
$control
=
new
AphrontFormTextControl
();
$placeholder
=
$this
->
getPlaceholder
();
if
(
strlen
(
$placeholder
))
{
$control
->
setPlaceholder
(
$placeholder
);
}
return
$control
;
}
protected
function
newConduitParameterType
()
{
return
new
ConduitStringParameterType
();
}
protected
function
newBulkParameterType
()
{
return
new
BulkStringParameterType
();
}
}
Event Timeline
Log In to Comment