2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * @package phpMyAdmin-Transformation
11 function PMA_transformation_application_octetstream__download(&$buffer, $options = array(), $meta = '') {
12 global $row, $fields_meta;
14 if (isset($options[0]) && !empty($options[0])) {
15 $cn = $options[0]; // filename
17 if (isset($options[1]) && !empty($options[1])) {
18 foreach($fields_meta as $key => $val) {
19 if ($val->name
== $options[1]) {
29 $cn = 'binary_file.dat';
35 '<a href="transformation_wrapper.php%s&ct=application/octet-stream&cn=%s" title="%s">%s</a>',
37 $options['wrapper_link'],
39 htmlspecialchars($cn),