Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105300549
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
Sun, Mar 16, 03:37
Size
777 B
Mime Type
text/x-php
Expires
Tue, Mar 18, 03:37 (2 d)
Engine
blob
Format
Raw Data
Handle
24959575
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
,
),
'Use Default Image instead'
));
}
}
Event Timeline
Log In to Comment