Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90746134
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
Mon, Nov 4, 09:36
Size
625 B
Mime Type
text/x-php
Expires
Wed, Nov 6, 09:36 (2 d)
Engine
blob
Format
Raw Data
Handle
22125970
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