Translation update done using Pootle.
[phpmyadmin/crack.git] / libraries / transformations / TEMPLATE
blob50433d699c3be82f770c0df5caa2536fca9731b4
1 <?php
2 // vim: expandtab sw=4 ts=4 sts=4:
4 /**
5  * Plugin function TEMPLATE (Garvin Hicking).
6  * -----------------------------------------
7  *
8  * For instructions, read the /Documentation.html file.
9  *
10  * The string [ENTER_FILENAME_HERE] shall be substituted with the filename without the '.inc.php'
11  * extension. For further information regarding naming conventions see the /Documentation.html file.
12  */
14 function PMA_transformation_[ENTER_FILENAME_HERE]_info() {
15     return array(
16         'info' =>  __('Description of the transformation.'),
17         );
20 function PMA_transformation_[ENTER_FILENAME_HERE]($buffer, $options = array(), $meta = '') {
21     // possibly use a global transform and feed it with special options:
22     // include('./libraries/transformations/global.inc.php');
24     // further operations on $buffer using the $options[] array.
26     // You can evaluate the propagated $meta Object. It's contained fields are described in http://www.php.net/mysql_fetch_field.
27     // This stored information can be used to get the field information about the transformed field.
28     // $meta->mimetype contains the original MimeType of the field (i.e. 'text/plain', 'image/jpeg' etc.)
30     return $buffer;