Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117086667
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
Wed, Jun 11, 10:33
Size
625 B
Mime Type
text/x-php
Expires
Fri, Jun 13, 10:33 (2 d)
Engine
blob
Format
Raw Data
Handle
26716663
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
();
}
}
Event Timeline
Log In to Comment