Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80249312
AphrontFormImageControl.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, Aug 30, 17:00
Size
782 B
Mime Type
text/x-php
Expires
Sun, Sep 1, 17:00 (2 d)
Engine
blob
Format
Raw Data
Handle
20330628
Attached To
rPH Phabricator
AphrontFormImageControl.php
View Options
<?php
final
class
AphrontFormImageControl
extends
AphrontFormControl
{
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-image'
;
}
protected
function
renderInput
()
{
$id
=
celerity_generate_unique_node_id
();
return
hsprintf
(
'%s<div style="clear: both;">%s%s</div>'
,
phutil_tag
(
'input'
,
array
(
'type'
=>
'file'
,
'name'
=>
$this
->
getName
(),
)),
phutil_tag
(
'input'
,
array
(
'type'
=>
'checkbox'
,
'name'
=>
'default_image'
,
'class'
=>
'default-image'
,
'id'
=>
$id
,
)),
phutil_tag
(
'label'
,
array
(
'for'
=>
$id
,
),
pht
(
'Use Default Image instead'
)));
}
}
Event Timeline
Log In to Comment