[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class AphrontFormImageControl extends AphrontFormControl { 4 5 protected function getCustomControlClass() { 6 return 'aphront-form-control-image'; 7 } 8 9 protected function renderInput() { 10 $id = celerity_generate_unique_node_id(); 11 12 return hsprintf( 13 '%s<div style="clear: both;">%s%s</div>', 14 phutil_tag( 15 'input', 16 array( 17 'type' => 'file', 18 'name' => $this->getName(), 19 )), 20 phutil_tag( 21 'input', 22 array( 23 'type' => 'checkbox', 24 'name' => 'default_image', 25 'class' => 'default-image', 26 'id' => $id, 27 )), 28 phutil_tag( 29 'label', 30 array( 31 'for' => $id, 32 ), 33 pht('Use Default Image instead'))); 34 } 35 36 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |