Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120341025
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
Thu, Jul 3, 15:53
Size
782 B
Mime Type
text/x-php
Expires
Sat, Jul 5, 15:53 (2 d)
Engine
blob
Format
Raw Data
Handle
27174867
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